Thread overview |
---|
November 21, 2004 windows "-g" flag necessary to correct code generation | ||||
---|---|---|---|---|
| ||||
Compiling the DUI OpenGL test programs without the "-g" flag generates code the will produce "Access Violation". with the "-G" flag the code run correctly. How can I demonstrate this without the full DUI library? DUI opengl make use of mixins (I don't know if that's relevant). Ant |
November 22, 2004 Re: windows "-g" flag necessary to correct code generation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | The first thing to do is find out where the problem is happening. Compile the code without -g, but link with -g. Then run it under windbg.exe, which will pinpoint the location. "Ant" <duitoolkit@yahoo.ca> wrote in message news:cnqpu9$27i7$1@digitaldaemon.com... > Compiling the DUI OpenGL test programs without > the "-g" flag generates code the will produce "Access Violation". > with the "-G" flag the code run correctly. > > How can I demonstrate this > without the full DUI library? > > DUI opengl make use of mixins (I don't know if that's relevant). > > Ant |
November 22, 2004 Re: windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | It seems this might be related with extern(C) instead of extern(Windows). I'm checking that. BTW seems version(Win32) extern(Windows): else extern(C): glFunctions... glFunctions... glFunctions... doesn't work... do I have to duplicate the functions under each version? Ant In article <cnrc3f$2rd$1@digitaldaemon.com>, Walter says... > >The first thing to do is find out where the problem is happening. Compile the code without -g, but link with -g. Then run it under windbg.exe, which will pinpoint the location. > >"Ant" <duitoolkit@yahoo.ca> wrote in message news:cnqpu9$27i7$1@digitaldaemon.com... >> Compiling the DUI OpenGL test programs without >> the "-g" flag generates code the will produce "Access Violation". >> with the "-G" flag the code run correctly. >> >> How can I demonstrate this >> without the full DUI library? >> >> DUI opengl make use of mixins (I don't know if that's relevant). >> >> Ant > > |
November 22, 2004 Re: windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | "Ant" <Ant_member@pathlink.com> wrote in message news:cnt0u3$2qlh$1@digitaldaemon.com... > It seems this might be related with extern(C) instead of extern(Windows). > I'm checking that. > > BTW > seems > version(Win32) extern(Windows): > else extern(C): > glFunctions... > glFunctions... > glFunctions... > > doesn't work... do I have to duplicate the functions under each version? It works when I try it: ----------------------------------- version (foo) { extern (Windows): } else { extern (C): } int foo(int x) { return x; } ---------------------------------- compiling with: dmd -c test and: dmd -c test -version=foo produces different callign convention versions of foo(). |
November 22, 2004 Re: windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | In article <cnthv4$mrl$1@digitaldaemon.com>, Walter says... > > >It works when I try it: > >----------------------------------- >version (foo) >{ > extern (Windows): >} >else >{ > extern (C): >} >produces different callign convention versions of foo(). I'll try it again tonight... Ant |
Copyright © 1999-2021 by the D Language Foundation