LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2003, 10:52 PM   #1
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
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
 
Old 09-21-2003, 11:05 PM   #2
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
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
 
Old 09-21-2003, 11:19 PM   #3
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
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


Last edited by Gerardoj; 09-21-2003 at 11:33 PM.
 
Old 09-22-2003, 05:06 AM   #4
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc compiler canyon289 Linux - Software 3 10-23-2004 10:22 PM
GCC compiler aviceda Linux - Newbie 5 08-13-2004 06:55 AM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 06:17 PM
GCC compiler...? ph0tik Linux - Newbie 4 04-22-2003 03:22 PM
gcc 3.1 compiler question wrc1944 Linux - Software 26 08-28-2002 03:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration