Re: Linker error with one particular function

2013-09-10 Thread Gary Willoughby
On Tuesday, 10 September 2013 at 10:42:44 UTC, Gary Willoughby wrote: On Friday, 16 August 2013 at 09:52:53 UTC, Gary Willoughby wrote: You might be onto something here as i only import this module into unit tests. When i get time i'll investigate a little further. If i take the import out of

Re: Linker error with one particular function

2013-09-10 Thread Gary Willoughby
On Friday, 16 August 2013 at 09:52:53 UTC, Gary Willoughby wrote: You might be onto something here as i only import this module into unit tests. When i get time i'll investigate a little further. If i take the import out of the unit test and place it at the top of my source file everything wo

Re: Linker error with one particular function

2013-08-16 Thread Jesse Phillips
On Friday, 16 August 2013 at 06:39:42 UTC, Jacob Carlborg wrote: No, I don't think so. At least on Mac OS X it always tell you the architecture: void foo(); void main () { foo(); } Undefined symbols for architecture x86_64: "_D4main3fooFZv", referenced from: __Dmain in main.d.o ld

Re: Linker error with one particular function

2013-08-16 Thread Gary Willoughby
On Thursday, 15 August 2013 at 18:54:40 UTC, Jesse Phillips wrote: I don't have an answer, but in case you are not familiar with cryptic linker: On Wednesday, 14 August 2013 at 13:21:49 UTC, Gary Willoughby wrote: But when i import it and use the getUnixTime function i get the following linke

Re: Linker error with one particular function

2013-08-15 Thread Jacob Carlborg
On 2013-08-15 20:54, Jesse Phillips wrote: I don't have an answer, but in case you are not familiar with cryptic linker: On Wednesday, 14 August 2013 at 13:21:49 UTC, Gary Willoughby wrote: But when i import it and use the getUnixTime function i get the following linker error: Undefined symbol

Re: Linker error with one particular function

2013-08-15 Thread Jesse Phillips
I don't have an answer, but in case you are not familiar with cryptic linker: On Wednesday, 14 August 2013 at 13:21:49 UTC, Gary Willoughby wrote: But when i import it and use the getUnixTime function i get the following linker error: Undefined symbols for architecture x86_64: The linker i

Re: Linker error with one particular function

2013-08-14 Thread Dicebot
On Wednesday, 14 August 2013 at 16:11:38 UTC, Gary Willoughby wrote: ... Hm, I remember I had similar issue once which faded away once I have stopped naming main module as `main`. Was not able to track exact conditions to trigger it - this may be something similar.

Re: Linker error with one particular function

2013-08-14 Thread Gary Willoughby
On Wednesday, 14 August 2013 at 14:05:07 UTC, Jacob Carlborg wrote: Have you compiled all the files? Show us the command you use to compile your code. Usually this is enough "rdmd main.d", where "main.d" is the file containing the main function. I'm sure all source files are compiled during th

Re: Linker error with one particular function

2013-08-14 Thread Jacob Carlborg
On 2013-08-14 15:21, Gary Willoughby wrote: I have defined the following module: /** * Module containing unit test helper functions for date time operations. */ module common.test.unit.datetime; /** * Imports. */ import std.conv; import std.datetime; /** * Return a unix timestamp.

Linker error with one particular function

2013-08-14 Thread Gary Willoughby
I have defined the following module: /** * Module containing unit test helper functions for date time operations. */ module common.test.unit.datetime; /** * Imports. */ import std.conv; import std.datetime; /** * Return a unix timestamp. * * Params: * T = The return type of the un