www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← 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
↑ ↓ → 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