digitalmars.D.announce - Re: x86-64 Tango
- doob <doobnet gmail.com> Oct 17 2007
- BCS <BCS pathlink.com> Oct 17 2007
I don't know where the correct values are, I've looked in sys/socket.h Lars Ivar Igesund Wrote:doob wrote:I had no idea I should set -version=Posix, but that didn't make any difference. Line 57 in tango.sys.linux.socket: version( X86 ) { enum: int { SOL_SOCKET = 1, } } else { // Different values on other platforms. static assert(0); } There is no "version (X86_64)" so it won't compile, doesn't matter if "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 17 2007
doob wrote:I don't know where the correct values are, I've looked in sys/socket.h Lars Ivar Igesund Wrote:doob wrote:I had no idea I should set -version=Posix, but that didn't make any difference. Line 57 in tango.sys.linux.socket: version( X86 ) { enum: int { SOL_SOCKET = 1, } } else { // Different values on other platforms. static assert(0); } There is no "version (X86_64)" so it won't compile, doesn't matter if "-version=Posix" is set or not.
Could you create a patch with the correct values, if they are available to you? -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
generate a c file with the needed includes and: int i = SOL_SOCKET; run it through cpp (the c preprocessor) and look at the last tine or use printf("%d\n", SOL_SOCKET);
Oct 17 2007