July 07, 2004 Unit Test with GDC on MacOS X? | ||||
---|---|---|---|---|
| ||||
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/
|
July 07, 2004 Re: Unit Test with GDC on MacOS X? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan Leffler | 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/ |
Copyright © 1999-2021 by the D Language Foundation