C (93/304)

From:Alexander Niven-Jenkins
Date:12 Aug 2000 at 12:42:16
Subject:Re: StormC...help...

Hiya,

OK I've narrowed it down. The _LVO linker error is due to sprintf and I
get an undefined symbol _stdout error when trying to use printf. Why?

My startups are as follows:

// CLI startup
void main( int argc, char **argv )
{
WBFlag = FALSE;
StartUp( argc, argv, NULL );
}

// WB startup
void wbmain( struct WBStartup *wbs )
{
WBFlag = TRUE;
StartUp( 0, NULL, wbs );
}

StartUp() does all the generic processing like opening libraries etc it
then calls either ParseCLI() or ParseWB() to start the specifics.

I have added the STORMAMIGA and STORMAMIGA_OS3 defines, I have added the
stormamiga.lib library and I have set the startup code to custom and chose
the c++ startup for stormamiga.

Yet I still get these errors? Like I said before I am cleaning up an
existing project, the existing project is identical and yet I do not get
these errors, what the hell am I missing???

I hope people don't mind I have uploaded the main source and project file
to the egroups file area (unarchived so you can view downlod and view).
Ignore the commented lines as these require other sources, you'll notice
that the printf lines within ParseCLI() cause the undefined _stdout
error...

Kind regards...

Alex



Cremlin Software - http://www.cremlinsoftware.org
Founder, lead programmer - ghandi@cremlinsoftware.org
Production, programmer - anj@cremlinsoftware.org