Strange /tmp error messages when compiling
I'm trying to compile this program to start off my entry into SDL:
Code:
#include </usr/include/SDL/SDL.h> Code:
/tmp/ccMdsGbg.o(xtest+0x16): In function `main': |
Try this -
cc sdl.c -lSDL -lpthread |
It works :D! Thanks Kumar, I've had this error for awhile, and now it's all gone!
Thanks again! |
well....actually you were missing the required libraries.
|
Quote:
Change this line: Code:
#include </usr/include/SDL/SDL.h> Code:
#include "SDL.h" Code:
gcc `sdl-config --cflags` `sdl-config --libs` -o sdlprog sdlprog.c |
All times are GMT -5. The time now is 02:53 PM. |