| devonrevenge (892) | |||
|
I have always used just one file to build everything, ive had all sorts of issues with the linker in project so i have been opening empty files and just using global settings, now i decided to use more files its gotten complicatred with the linking very quickley, i would love to do all this in 'project' but for some reason i can link all the libraries in global options just not in project options!! so any way heres the error for this code. C:\Users\user\Documents\basic project\main.cpp|13|error: expected constructor, destructor, or type conversion before '.' token| ....... ||=== Build finished: 13 errors, 0 warnings ===|
EDIT: hey i just put the clips in the wrong place :P but could you advise on the crazy linker buisness, its sooo confusing | |||
|
Last edited on
|
|||
| Peter87 (3911) | |
| I don't know but maybe each project use their own linker settings so you will have to add SDL to be linked to all your projects that use SDL. | |
|
|
|
| devonrevenge (892) | |
|
can you tell me what this error means? im unable to create projects in SDL.and i was gonna make an awsome game project today :( . -------------- Build: Debug in my SDL project --------------- Linking console executable: bin\Debug\my SDL project.exe mingw32-g++.exe: SDL: No such file or directory mingw32-g++.exe: project -LC:\Users\user\Documents\my: Invalid argument mingw32-g++.exe: SDL: No such file or directory mingw32-g++.exe: project": Invalid argument Process terminated with status 1 (0 minutes, 0 seconds) 0 errors, 0 warnings | |
|
|
|
| Peter87 (3911) | |
I think you need to put quotes around the path-L"C:\Users\user\Documents\my SDL project.exe"If this is nothing you can change you could try using a project name/directory name without spaces. | |
|
|
|
| devonrevenge (892) | |
|
i got an ever so slightly different error message, what could you de-duce from this? -------------- Build: Debug in my SDL project --------------- Linking console executable: bin\Debug\my SDL project.exe mingw32-g++.exe: SDL: No such file or directory mingw32-g++.exe: project.exe: No such file or directory mingw32-g++.exe: Files\CodeBlocks\MinGW\lib -LC:\Users\user\Documents\C++: Invalid argument mingw32-g++.exe: folder -LC:\boost\boost_1_47_0\boost_1_47_0 -LC:\boost\boost_1_47_0\boost_1_47_0\boost\asio -LC:\Users\user\Documents\basic: Invalid argument mingw32-g++.exe: project -o bin\Debug\my: No such file or directory mingw32-g++.exe: SDL: No such file or directory mingw32-g++.exe: project.exe obj\Debug\main.o -lmingw32 -lSDLmain -lSDL -lSDL_image -lmingw32 -lSDLmain -lSDL -lSDL_image C:\Program: Invalid argument mingw32-g++.exe: Files\CodeBlocks\MinGW\lib\SDL_image.lib C:\Users\user\Downloads\SDL-1.2.15\lib\libSDLmain.a C:\Program: Invalid argument mingw32-g++.exe: Files\CodeBlocks\MinGW\lib\SDL_image.lib C:\Users\user\Downloads\SDL-1.2.15\lib\libSDLmain.a C:\Program: Invalid argument mingw32-g++.exe: Files\CodeBlocks\MinGW\lib\SDL_image.lib: No such file or directory mingw32-g++.exe: no input files should i just use a different editor? linkers are annoying | |
|
Last edited on
|
|
| devonrevenge (892) | |
| is there a tutorial thats very concise and specific when it comes to setting up a sdl project on code blocks | |
|
|
|
| Peter87 (3911) | |
|
Have you tried lazy foo? http://lazyfoo.net/SDL_tutorials/lesson01/windows/codeblocks/index.php | |
|
|
|
| devonrevenge (892) | |
| yeah thas who i been learning from, i have managed to start a new project and get that working it may have been spaces in the project name, it may have been some settings when i included something iwill proly need your help when i add a new header and it soesnt work, i find livraries and apis to be overly complex to install, i hope linux is as much easier as they say it is | |
|
|
|
| cire (2347) | ||
It would appear you have spaces in the project name.. and your toolchain doesn't like it. (In other words, the same problem as in your previous post.) | ||
|
Last edited on
|
||
| devonrevenge (892) | |
|
ahh solved; i put off using headers for a bit too long, now i will build myself a library :D i will be able to make more stuff faster, im starting to feel progress. | |
|
|
|