Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C Okay. Few. That was a mess.camlorn, you were correct in me needing LIB system side.Thank you for your help... again. I really am beginning to see a trend here... lol URL: https://forum.audiogames.net/post/518410/#p518410 -- Audiogames-reflector

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C And...sorry to double post. But option B is you make a batch file that sets them, then run that yourself.  I have vague recollections that I landed on this because I needed to have 32 and/or 64 bit versions and switch between them.Sorry I can't be more help

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C Interesting, and I don't actually know what to say here. Does LIBPATH work? I think you need LIBPATH anyway.There are two environment variable control panels, user and system. You start off in user, and can click through to system. You might need

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C There must be something I'm missing, then, because the variables do not show themselves outside of the prompt.I tried creating a LIB variable in the environment variables and nothing, still same old values. URL: https://forum.audiogames.net/post/518366

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C There must be something I'm missing, then, because the variables set by my developer prompt don't show themselves in the environment variables tab. The only time I see them is in the developer prompt. URL: https://forum.audiogames.net/post/518365/#p518365

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C You need to do the change via control panel, not via a shell.  Any changes made via a shell are transient and will reset when you restart the shell.  The config scripts for VS should pick up the changes made in control panel, and include them when

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C @camlorn, I tried following your advice pertaining to the creation of a central lib directory, but the LIB variable gets reset to it's original value whenever I add anything to it and relaunch the microsoft developer prompt. I googled the possible reasons

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C Yeah so. I answered my own question. This does work outside VS. And wow, I can't believe I didn't know about this. Looks like it has 1000 common libraries in it. URL: https://forum.audiogames.net/post/518303/#p518303 -- Audiogames-reflector mailing

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C @9Does that work when not using Visual Studio?  In general I've found that the Microsoft-provided options try to force VS on you.  I wouldn't be entirely surprised if they finally stepped away from that philosophy though. URL: https://forum.audiogames.net

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: An error when using SDL in C You may wish to try VCPKG for your dependency management. You'll needVS 2017-2019 to build it, but you can then install all the dependencies you need (except libs like tolk) like so:vcpkg install --triplet x64-windows {[[,,...]] [[[,,...]]] ...} URL: https

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: An error when using SDL in C You may wish to try VCPKG for your dependency management. You'll needVS 2017-2019 to build it, but you can then install all the dependencies you need (except libs like tolk) like so:vcpkg install --triplet x64-windows {[[,,...]] [[[,,...]] ... URL: https

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: An error when using SDL in C You may wish to try VCPKG for your dependency management. You'll needVS 2017-2019 to build it, but you can then install all the dependencies you need (except libs like tolk) like so:vcpkg install --triplet x64-windows [] URL: https://forum.audiogames.net

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C Two cmake protips:First:mkdir build cd build cmake -G "NMake Makefiles" ..Which will put all the .obj files out of your way. There might be something special you have to do with the .lib files however, probably setting the lib environmen

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C So after a bit of reading on cmake, here is my CMakeListscmake_minimum_required(VERSION 3.1.1) project (hello) add_executable(test test.c) target_link_libraries(test SDL2.lib) target_link_libraries(test SDL2main.lib)My compilation commands

Re: An error when using SDL in C

2020-04-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C So after a bit of reading on cmake, here is my CMakeListscmake_minimum_required(VERSION 3.1.1) project (hello) add_executable(test test.c) target_link_libraries(test SDL2.lib) target_link_libraries(test SDL2main.lib)My compilation commands

Re: An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C @5Ok, the docs on the command prompt aren't powershell.  Powershell is it's own unique thing.  Windows has two shells now, and they actually introduced some support for Powershell here.VSCode is just an ultra-powerful text editor. I brought it up because

Re: An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C @4.You were correct. Hello World doesn't break, the #include "SDL2/include/SDL.h" does.The reason why I used the developer powershell was because of this link which discusses using visual studio developer tools from the command line.Gonna look in

Re: An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C @3To start with the last point first, I give you Synthizer's CMakeLists.txt.  You will need to learn a little to use it, but your CMakeLists.txt will be much shorter than that one.  I link mine because I am 99% sure you will be able to follow it, and walk

Re: An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: An error when using SDL in C I'm not sure as to how to link libraries in the dev powershell. The tutorial did mention adding the file in VS code, but I figured that, ur, the cl command would do it for me? Figures me being wrong.Trouble is, googling the question doesn't give me much

Re: An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: An error when using SDL in C The error is odd, but not for the reason you think.  What links to sdl2.lib?  Does their tutorial say you don't have to? I would be expecting it to dump an entire page of errors at minimum.  There are ways for headers to link libraries automatically

An error when using SDL in C

2020-04-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
An error when using SDL in C So I downloaded the SDL development libraries from here and have tried to follow the first part of the tutorial found here. Below is my C code:#include "SDL2/include/SDL.h" #include const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; int