digitalmars.D - Weird linker error with exit code 1
- terchestor (17/17) Jan 25 2014 I've searched for previous posts about that linker error exit
- terchestor (7/7) Jan 25 2014 Finally found the error, renaming the importing file: generator
I've searched for previous posts about that linker error exit code 1 without finding any valuable solution. I'm compiling and unittesting a module importing other modules already tested without any error. I get a linker error with one of my imported modules (named tausworthe). However I dont have that error when I import the tausworthe module in another similar module. I can't figure out the source of the error. ---- dmd -unittest -debug=Generator -main generator.d generator.o:(.data+0xc0): undefined reference to `_D10tausworthe12__ModuleInfoZ' generator.o: In function `_D6signal13__T6SignalTeZ6Signal4��atMFNdmZv': __main.d:(.text._D6signal13__T6SignalTeZ6Signal4��atMFNdmZv+0x67): undefined reference to `_D6signal8__assertFiZv' ----
Jan 25 2014
Finally found the error, renaming the importing file: generator to sigenerator. With exactly the same code, now it links. But, and this is the oddest think I discovered, recompiling the generator module after the renamed one, the linker error disappeared! Does someone has an explanation?
Jan 25 2014