Re: [Dev-C++] Strange compilation unit errors
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2004-11-02 08:48:56
|
It is nice that you have posted your error messages. However, since we can't see your code, we can't say what you are doing wrong. /Per W On Mon, 1 Nov 2004, Scott Simontis wrote: > 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-- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |