Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Mike Parker
On 5/13/2012 1:46 AM, Kevin Kowalczyk wrote: I posted on stackoverflow but there hasn't been much in the way of actually resolving my problem, I'll post the link here in the hopes someone can answer my question. http://stackoverflow.com/questions/10564608/using-derelict3-under-dmd2-d I should

Re: What is a good strategy for finding undefined symbols...

2012-05-12 Thread Mike Parker
On 5/13/2012 2:22 AM, WhatMeWorry wrote: Looks like you are trying to link. Libraries are not linked they are just compiled. Then object files are put together into library file. Link produces *executable* (yeah I recall that was hard to get at first). Wait, isn't that the whole point of libr

Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Mike Parker
On 5/13/2012 1:46 AM, Kevin Kowalczyk wrote: I posted on stackoverflow but there hasn't been much in the way of actually resolving my problem, I'll post the link here in the hopes someone can answer my question. http://stackoverflow.com/questions/10564608/using-derelict3-under-dmd2-d That look

libraries and c++ compatibility

2012-05-12 Thread Jason King
I'm trying to use ocilib (deimos\ocilib) bindings and having some issues. dmd 2.0.59, Windows 7 64 bit. I can change sc.ini to get everything to build. I can compile with dmd myapp.d -I -c, but I can't seem to figure out the right switches to make the app find the ociliba-dm.lib that I generate

How do I do printf/writefln debugging in CTFE?

2012-05-12 Thread Chad J
Hi, It's been a while since I've used CTFE, and I was wondering if it has become possible to do something like this: void ctfeFunc(string arg) { pragma(msg, "arg is "~arg); } void main() { ctfeFunc("foo"); } That specific attempt gives me an error: test.d(3): Error: variable

Re: D Dll injection problem

2012-05-12 Thread Gyron
On Thursday, 12 April 2012 at 14:43:01 UTC, maarten van damme wrote: works and GetLastError() returns 0 in both cases. Op 12 april 2012 16:13 schreef Kagamin het volgende: #include void main() { LPTHREAD_START_ROUTINE LoadLibAddy = (LPTHREAD_START_ROUTINE)** GetProcAddress(**GetModuleHan

Re: Weird integral promotion issue (?)

2012-05-12 Thread Dmitry Olshansky
On 13.05.2012 1:08, Alex Rønne Petersen wrote: Hi, alexrp@alexrp ~/Projects/tests $ dmd test.d test.d(9): Error: cannot implicitly convert expression (240) of type int to byte alexrp@alexrp ~/Projects/tests $ cat test.d import std.stdio, std.traits; void foo(T)(T val) if (isIntegral!T) { } voi

Weird integral promotion issue (?)

2012-05-12 Thread Alex Rønne Petersen
Hi, alexrp@alexrp ~/Projects/tests $ dmd test.d test.d(9): Error: cannot implicitly convert expression (240) of type int to byte alexrp@alexrp ~/Projects/tests $ cat test.d import std.stdio, std.traits; void foo(T)(T val) if (isIntegral!T) { } void main() { foo!byte(0b); } Why? I

Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Jordi Sayol
Al 12/05/12 18:46, En/na Kevin Kowalczyk ha escrit: > I posted on stackoverflow but there hasn't been much in the way of actually > resolving my problem, I'll post the link here in the hopes someone can answer > my question. > > http://stackoverflow.com/questions/10564608/using-derelict3-under-d

Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Kevin Kowalczyk
On Saturday, 12 May 2012 at 17:07:38 UTC, Francois Chabot wrote: On Saturday, 12 May 2012 at 16:46:05 UTC, Kevin Kowalczyk wrote: I posted on stackoverflow but there hasn't been much in the way of actually resolving my problem, I'll post the link here in the hopes someone can answer my question

Re: What is a good strategy for finding undefined symbols...

2012-05-12 Thread Andrew Wiley
On Sat, May 12, 2012 at 12:22 PM, WhatMeWorry wrote: > Looks like you are trying to link. Libraries are not linked they are just >> compiled. Then object files are put together into library file. >> Link produces *executable* (yeah I recall that was hard to get at first). >> >>> >>> > Wait, isn'

Re: What is a good strategy for finding undefined symbols...

2012-05-12 Thread WhatMeWorry
Looks like you are trying to link. Libraries are not linked they are just compiled. Then object files are put together into library file. Link produces *executable* (yeah I recall that was hard to get at first). Wait, isn't that the whole point of libraries, that they are pre-compiled? Link

Re: Errors compiling programs using Derelict 3 under DMD 2

2012-05-12 Thread Francois Chabot
On Saturday, 12 May 2012 at 16:46:05 UTC, Kevin Kowalczyk wrote: I posted on stackoverflow but there hasn't been much in the way of actually resolving my problem, I'll post the link here in the hopes someone can answer my question. http://stackoverflow.com/questions/10564608/using-derelict3-un