This is what I got. I'm using g++ because I never got around to learning how to compile with gcc.
Code:
g++ Core.cpp Capacitor.cpp LedLight.cpp DisplayModule.cpp Control_Switch.cpp Part.cpp Resistor.cpp SiliconDiode.cpp -lSDL -lSDL_image -lSDL_gfx -lSDL_main
In file included from microtype.h:8,
from Core.cpp:15:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
Core.cpp: In function ‘int main(int, char**)’:
Core.cpp:118: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:126: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:134: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:142: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:156: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:164: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:172: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:180: warning: deprecated conversion from string constant to ‘char*’
Core.cpp:184: error: ‘Sleep’ was not declared in this scope
Core.cpp:189: warning: deprecated conversion from string constant to ‘char*’
In file included from microtype.h:8,
from Part.h:10,
from Capacitor.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
Capacitor.cpp:4:23: error: SDL_image.h: No such file or directory
In file included from microtype.h:8,
from Part.h:10,
from LedLight.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
In file included from microtype.h:8,
from DisplayModule.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
DisplayModule.cpp:5:23: error: SDL_image.h: No such file or directory
In file included from microtype.h:8,
from Control_Switch.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
Control_Switch.cpp:5:23: error: SDL_image.h: No such file or directory
In file included from microtype.h:8,
from Part.h:10,
from Part.cpp:5:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
In file included from microtype.h:8,
from Resistor.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
In file included from microtype.h:8,
from SiliconDiode.cpp:2:
/usr/local/include/SDL/SDL_gfxPrimitives.h:17:17: error: SDL.h: No such file or directory
When I search the SDL include folder, I get this.
Code:
ls /usr/include/SDL/
begin_code.h SDL_framerate.h SDL_loadso.h SDL_stdinc.h
close_code.h SDL_getenv.h SDL_main.h SDL_syswm.h
SDL_active.h SDL_gfxPrimitives_font.h SDL_mixer.h SDL_thread.h
SDL_audio.h SDL_gfxPrimitives.h SDL_mouse.h SDL_timer.h
SDL_byteorder.h SDL_gfxPrimitives.h~ SDL_mutex.h SDL_ttf.h
SDL_cdrom.h SDL.h SDL_name.h SDL_types.h
SDL_config.h SDL_imageFilter.h SDL_opengl.h SDL_version.h
SDL_cpuinfo.h SDL_image.h SDL_platform.h SDL_video.h
SDL_endian.h SDL_joystick.h SDL_quit.h
SDL_error.h SDL_keyboard.h SDL_rotozoom.h
SDL_events.h SDL_keysym.h SDL_rwops.h
See, this was for a project at school and I had already installed SDL and used it here on my Linux box. What I'm adding to it now is an extension because...it can't draw primitives...
This no such file error is occuring in a library file.
I have looked this up but I just haven't found anything.
In SDL_gfxPrimitives.h, the include is
Code:
#include <SDL/SDL.h>
Of course, this is after trying the default
and
Code:
#include "SDL/SDL.h"
Bookmarks