www.digitalmars.com         C & C++   DMDScript  

D.gnu - Unit Test with GDC on MacOS X?

reply Jonathan Leffler <jleffler earthlink.net> writes:
I have a module (someone else's module, actually) which includes a 
unit test.  I also have GDC (d-for-gcc-r1f.tgz) built with GCC 3.4.0 
on MacOS X 10.3.4.  When I compile the module for unit testing (gdc 
-funittest source.d), I get:

/usr/bin/ld: Undefined symbols:
__Dmain

Any ideas on what I'm not doing right?

-- 
Jonathan Leffler                   #include <disclaimer.h>
Email: jleffler earthlink.net, jleffler us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Jul 06 2004
parent Jonathan Leffler <jleffler earthlink.net> writes:
Jonathan Leffler wrote:
 I have a module (someone else's module, actually) which includes a unit 
 test.  I also have GDC (d-for-gcc-r1f.tgz) built with GCC 3.4.0 on MacOS 
 X 10.3.4.  When I compile the module for unit testing (gdc -funittest 
 source.d), I get:
 
 /usr/bin/ld: Undefined symbols:
 __Dmain
 
 Any ideas on what I'm not doing right?
OK - I've worked it out - you can go back to sleep now. Thanks, and sorry for troubling you. (More precisely, I've got the code to link; now it just core dumps when run. On to the next adventure!) -- Jonathan Leffler #include <disclaimer.h> Email: jleffler earthlink.net, jleffler us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Jul 06 2004