dwt compile problem

Ty Tower tytower at hotmail.com
Mon Feb 4 16:14:08 PST 2008


Can anyone tell me what the linker is not finding here?
It seems to make the object OK but cant link

[tytower at localhost misc]$ dmd ./hello.d
gcc hello.o -o hello -m32 -Xlinker -L/dmd/bin/../lib -lphobos -lpthread -lm
hello.o:(.data+0xac): undefined reference to `_D3dwt3all12__ModuleInfoZ'
hello.o: In function `_D5hello5Hello4openMFC3dwt7widgets7display7DisplayZC3dwt7widgets5shell5Shell':
./hello.d:(.gnu.linkonce.t_D5hello5Hello4openMFC3dwt7widgets7display7DisplayZC3dwt7widgets5shell5Shell+0x11): undefined reference to `_D3dwt7widgets5shell5Shell7__ClassZ'
./hello.d:(.gnu.linkonce.t_D5hello5Hello4openMFC3dwt7widgets7display7DisplayZC3dwt7widgets5shell5Shell+0x1f): undefined reference to `_D3dwt7widgets5shell5Shell5_ctorMFC3dwt7widgets7display7DisplayZC3dwt7widgets5shell5Shell'
hello.o: In function `_D5hello5Hello3runFZv':
./hello.d:(.gnu.linkonce.t_D5hello5Hello3runFZv+0x8): undefined reference to `_D3dwt7widgets7display7Display10getDefaultFZC3dwt7widgets7display7Display'
hello.o: In function `_Dmain':
./hello.d:(.gnu.linkonce.t_Dmain+0x26): undefined reference to `_D3dwt7widgets10messagebox10MessageBox11showMessageFAaAaC3dwt7widgets5shell5ShelliZi'
collect2: ld returned 1 exit status
--- errorlevel 1



More information about the Digitalmars-d-learn mailing list