ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Rep:
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.
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
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465
Original Poster
Rep:
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.