problem compiling ogl wrapper
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: problem compiling ogl wrapper

  1. #1
    Join Date
    Jul 2009
    Posts
    2

    problem compiling ogl wrapper

    hello everyone, i was trying to create a custom opengl32.dll with devcpp
    so i could add some functions to add support for a pixelshader (postprocessing)
    to enable some effects like SSAO,DoF etc. (pretty much like enbseries does for direct3d)
    im using the -def parameter to add a .def file to the project so i can easily export the
    glfunctions , unfortinatly there seems to be a little problem:
    Code:
    Compiler: Default compiler
    Building Makefile: "E:\Quake2\glextender\Makefile.win"
    Executing  make clean
    rm -f dllmain.o  ../oglextender.dll
    
    gcc.exe -c dllmain.c -o dllmain.o -I"C:/Dev-Cpp/include"     -fexpensive-optimizations -O3 -mmmx
    
    dllwrap.exe --output-def ../liboglextender.def --implib ../liboglextender.a dllmain.o  -L"C:/Dev-Cpp/lib" -def exports.def -lopengl32  -s -mmmx  -o ../oglextender.dll
    
    oglextender.exp(.edata+0x38):fake: undefined reference to `glAccum'
    ...
    oglextender.exp(.edata+0x5d4):fake: undefined reference to `wglUseFontOutlinesW'
    collect2: ld returned 1 exit status
    dllwrap.exe: gcc exited with status 1
    make.exe: *** [../oglextender.dll] Error 1
    
    Execution terminated
    Does anybody know how i can get rid of these errors???

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Fairfax, VA
    Posts
    10,888

    Re: problem compiling ogl wrapper

    Why? OpenGL already supports pixel shaders, either via GLSL or Cg. There may be other options.

  3. #3
    Join Date
    Jul 2009
    Posts
    2

    Re: problem compiling ogl wrapper

    Quote Originally Posted by Lindley View Post
    Why? OpenGL already supports pixel shaders, either via GLSL or Cg. There may be other options.
    i guess u misunderstood the problem a little bit .... its about adding a pixelshader to games
    that doesnt support this feature

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center