still getting errors linking opengl

Daniel Keep daniel.keep.lists at gmail.com
Tue Dec 4 20:01:05 PST 2007



David Medlock wrote:
> ...
> Since the glfw header starts with:
> 
> version( Win32 ) extern(Windows):
> 
> Shouldn't those errors be C-mangled names and not D ones?
> 
> Any pointers?  Walter?
> 
> -David

No; that was a bug in the compiler that got fixed after that version.
The "extern(Windows)" only takes effect to the end of the version block.
 If you want to use extern(Windows) on windows and extern(C) on
everything else, replace:

version( Win32 ) extern(Windows): else extern(C):

With:

extern(System):

	-- Daniel



More information about the Digitalmars-d mailing list