|
Post Number: 1
|
|
Post Number: 2
|
|
Post Number: 3
|
|
Post Number: 4
|
demonk
The other white meat
Group: Members
Posts: 800
Joined: Aug. 2000
|
|
Posted on: Aug. 01 2001,21:02 |
|
|
Well, I'm trying to compile an EXAMPLE from the SDL website. I've been looking at the gl.h file, and it seems to have been written in C++ since there is an extern C{ near the top. I don't even think it is linking. I think it finds the header file just fine, but it can't seem to find the libraries at all. I've tried copying them to several lib/ directories all over the place, and it still won't find them.I have SOME experience with C, almost nill with C++, and way too much with Java. My @$#\% CS program at school really leans on Java for entry level classes. $\%#@ ruins everyone who goes through them. IF YOU ARE THINKING OF BEING A CS MAJOR, DO NOT GOTO OREGON STATE UNIVERSITY!!! Of cource, they make up for it with great engineering majors. Anyway, most of the C experience has been through a GUI called Code Warrior, which I HAD to use to turn in my assignments. Now I've switched to a straight text editor with a little bit of color highlighting, so I'm doing all my own compiling and linking by hand. With SDL, when you compile a program, they say you should use this command sequence: gcc <source> -o <destination> `sdl-config --cflags --libs` That last part returns linking and other such commands. This is where I think I'm getting hung up. Anyway, I really need specific help, not just general advice. ------------------ 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10
|
|
|
|
Post Number: 5
|
|
Post Number: 6
|
demonk
The other white meat
Group: Members
Posts: 800
Joined: Aug. 2000
|
|
Posted on: Aug. 02 2001,13:05 |
|
|
I use a program called TextPad. Just search on Yahoo for it, you'll find it. It does color coding for a lot of languages, like C, C++, perl, HTML, XML, php, etc, etc. Very small, very fast.------------------ 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10
|
|
|
|
Post Number: 7
|
|
Post Number: 8
|
|
Post Number: 9
|
damien_s_lucifer
Emperor of Detnet
Group: Members
Posts: 33
Joined: Jan. 1970
|
|
Posted on: Aug. 03 2001,03:38 |
|
|
wow. textpad owns.
|
|
|
|
Post Number: 10
|
demonk
The other white meat
Group: Members
Posts: 800
Joined: Aug. 2000
|
|
Posted on: Aug. 05 2001,15:13 |
|
|
Yup, textpad is the king of simple text editors.Here is what I get when I run sdl-config --cflags --libs -I/usr/local/include -I/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -L/usr/local/lib -lmingw32 -lSDLmain -mwindows -mno-cygwin I've also recently seen an example of how to compile this program I want to compile under Linux\SDL. I added an extra couple of options: -lGL -lGLU When I added that, I get a new error. Now it says it cannot find -lGL. Don't know what to do. ------------------ 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10 This message has been edited by demonk on August 06, 2001 at 10:15 AM
|
|
|
|
|
|