LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   GCC Compiler Question? (https://www.linuxquestions.org/questions/programming-9/gcc-compiler-question-95355/)

Gerardoj 09-21-2003 10:52 PM

GCC Compiler Question?
 
Hi, I downloaded a C++ code from the NET, and I would like to know which compiler I need to use, to compile the Code, I tried with GCC and doesnt works me. Thanks A lot.

LINK TO DOWNLOAD THE CODE:

http://easynews.dl.sourceforge.net/s...oy/sopa_pt.zip

eric.r.turner 09-21-2003 11:05 PM

You should ask the author of the code. If there isn't enough documentation to get you started, then he/she should be made aware of that: pedro__santos@iol.pt

Gerardoj 09-21-2003 11:19 PM

Thanks for your reply, I sent to the author of the code the last week an email, he said me that all code was tested in the VC++. But I tried to compile in VC++ and appears me:

Compiling...
main.cpp
c:\documents and settings\root\my documents\c code\sopa\main.cpp(22) : fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
Error executing cl.exe.

main.obj - 1 error(s), 0 warning(s)

What could be the Problem, and is there a way to compile in Linux with GCC?

Thanks


jinksys 09-22-2003 05:06 AM

You dont have the SDL headers or libs installed. The code is looking for the SDL.h header, which is not on your system. This code is c++, which needs to be compiled using g++ on linux.


All times are GMT -5. The time now is 05:58 PM.