[Dev-C++] Strange compilation unit errors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Scott S. <ssi...@sp...> - 2004-11-02 02:19:21
|
I am working on a TGA file loader for OpenGL. I keep getting lots of errors. It looks like the header file for the TGA loader isn't being seen, so the definition cannot be found. Does anyone know why it isn't working? Its about 130 lines of code or so, and is at http://home.comcast.net/~ageofscott/tgacode.zip compilation errors are below: Compiler: Default compiler Building Makefile: "C:\Code\scifair\Makefile.win" Executing make... mingw32-make.exe -f "C:\Code\scifair\Makefile.win" all g++.exe -c tgaloader.cpp -o tgaloader.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/GL" -I"C:/Dev-Cpp/include/SDL" -I"C:/Dev-Cpp/include/allegro" -I"C:/Dev-Cpp/allegro/include" -I"C:/wx/include" -I"C:/Code" tgaloader.cpp:29: error: ISO C++ forbids declaration of `LoadTGA' with no type tgaloader.cpp:29: error: prototype for `int TGAImage::LoadTGA(TGAImage*, std::string, GLuint)' does not match any in class `TGAImage' tgaloader.h:18: error: candidate is: bool TGAImage::LoadTGA(TGAImage*, std::string, GLuint) tgaloader.cpp:29: error: `int TGAImage::LoadTGA(TGAImage*, std::string, GLuint)' and `bool TGAImage::LoadTGA(TGAImage*, std::string, GLuint)' cannot be overloaded tgaloader.cpp: In member function `int TGAImage::LoadTGA(TGAImage*, std::string, GLuint)': tgaloader.cpp:60: error: 'class TGAImage' has no member named 'height' tgaloader.cpp:91: error: base operand of `->' has non-pointer type `TGAImage' tgaloader.cpp:92: error: base operand of `->' has non-pointer type `TGAImage' tgaloader.cpp:111: error: base operand of `->' has non-pointer type `TGAImage' tgaloader.cpp:111: error: base operand of `->' has non-pointer type `TGAImage' mingw32-make.exe: *** [tgaloader.o] Error 1 Execution terminated Thanks in advanced for any help. -- --Scott Simontis-- |