And now what???

John M. Mills jmills@tga.com
Sat Apr 1 00:00:00 GMT 2000


	
Stefane and b.g. -

I have a C++ main source module which ends as follows:
------
...
extern "C" {
// Needed to suppress C++ constructors */
int __main(void){ return 0; }

/* Main Function */
int main(void)
{
	cppSioTest();
	return 0;
} // main
} // extern "C"
------

The rest of the code, including 'cppSioTest()', is written in C++.  This
module is named "siotest.cpp". It compiles under GNU tools, I link it to
an sh2-coff object, and I can debug C and C++ sections at source level.

There are surely other dodges, but this one seems to work.

  John Mills, Sr. Software Engineer
  TGA Technologies, Inc.
  100 Pinnacle Way, Suite 140
  Norcross, GA 30071-3633
  e-mail: jmills@tga.com
  Phone: 770-441-2100 ext.124 (voice)
         770-449-7740 (FAX)



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list