Menu

libpng problems

st_claire
2007-08-16
2012-09-26
  • st_claire

    st_claire - 2007-08-16

    Hi,

    I've installed the libpng and zlib packages, and I'm trying to compile a program, but I get the following errors:

    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Projects\Renderer\Makefile.win"
    Executing make...
    c:\dev-cpp\bin\make.exe -f "C:\Dev-Cpp\Projects\Renderer\Makefile.win" all
    c:\dev-cpp\bin\g++.exe testParseWrl.o VRMLObject.o wrlDraw.o wrlDrawOGL.o wrlParser.o utils.o -o "Renderer.exe" -L"C:/Dev-Cpp/lib" -fnative-struct -lpng -lglui -lglut32 -lglu32 -lopengl32 -lwinmm

    wrlDrawOGL.o(.text+0xae7):wrlDrawOGL.cpp: undefined reference to pngSetStandardOrientation@4' wrlDrawOGL.o(.text+0xb1c):wrlDrawOGL.cpp: undefined reference topngLoad@16'
    collect2: ld returned 1 exit status

    c:\dev-cpp\bin\make.exe: *** [Renderer.exe] Error 1

    Execution terminated

    I'm using Dev-c++ version 4.9.9.2 and windows Vista Home Premium.

    Thanks very much!

     
    • Wayne Keen

      Wayne Keen - 2007-08-16

      What library have you found this function:

      pngSetStandardOrientation

      to be in, i.e. have you done a search to check for where it can be found.

      Being an absolute moron with respect to those packages (and many OTHER things) - can you tell
      me is the package is strictly a static library, or is there a dll that comes with it?

      If there is, are you sure it is in the correct path to be found?

      Wayne

       
    • st_claire

      st_claire - 2007-08-17

      Thanks, I searched for it and was able to get it working by moving the locations of the files around.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.