I followed the instructions on
https://powdertoy.co.uk/Wiki/W/Compiling_tpt%2B%2B_with_Visual_studio.html
, but I always get the same error(s):
1>c:\users\administrator\desktop\TPT++\src\simulation\Elements.h(57): fatal error C1083: Cannot open include file: 'ElementClasses.h': No such file or directory
1> OptionsView.cpp
...and this for EVERY source file of TPT++.
I checked the path at the settings, moved some files, did everything again for a few times, tried another way, but no success.
Did anyone had the same errors? If yes, how did you solve them? Please comment, I would really appreciate that.
LG,
TRS
Sorry, I was looking trough the topics and I found the solution... But now im getting A linker error.
unresolved external symbol_imp__iob_func referenced in function_Showerror, I think its something with sdl
Im using visual studio 2015, on windows 7
Yes, I used the premade project, but I didn´t knew about the thing with generator.py, thanks.
Now i´ve tried it again with generator.py, and the errors from before are gone, but now it can´t open the include files ?
Error 1 error C1083: Cannot open include file: 'pthread.h': No such file or directory c:\users\administrator\desktop\TPT++\src\tasks\Task.h 5 1 The-Powder-Toy++
Error 204 error C1083: Cannot open include file: 'lua5.2/lua.h': No such file or directory c:\users\administrator\desktop\TPT++\src\lua\LuaCompat.h 14 1 The-Powder-Toy++
... again, this for 272 times.
Seems like Visual Studio simply ignores the includes folder.
I´m using Visual Studio 2013 on Windows 10 x64.
*Facepalm*
Thanks, but now I found out where the error was... Why didn´t I notice that I extracted the libs into the source folder? Why did I do that?
Well, sorry for wasting your time... have an Oreo!
_.:::::._
.:::'_|_':::.
/::' --|-- '::\
|:" .---"---. ':|
|:( O R E O ):|
|:: `-------'::|
\:::.......::: /
':::::::::::'
`'"""'`