Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / AGK C++ App and Visual Studio Code Editor

Author
Message
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 21st Nov 2017 21:16 Edited at: 21st Nov 2017 21:45
my plan was to start with a c++ example here and instead of visual studio, only the smaller version of "code" editor.
?:\Steam\steamapps\common\App Game Kit 2\Tier 2\apps\template_windows_vs2015_64
So, i installed this VS Studio Code Editor with C++ Extension.
https://code.visualstudio.com/docs/languages/cpp
installed this popular C++ compiler MinGW for Windows from link there http://www.mingw.org/
Edited the includePath in settings which i opened via lightbulb in source code.
created a tasks.json via menu from a template.
because of "No such file or directory" after hours i found some infos in web it will have a relative include path^^
Quote: "g++ has an option -I. It lets you add include search paths to the command line.
You can add more include-paths; each you give is relative to the current directory."


now it compile throw many warnings and in the end i have errors and still NO EXE

this is my compile tasks.json
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.2) Radeon R7 265 : Mac mini OS High Sierra (10.13)
Westa
13
Years of Service
User Offline
Joined: 28th Oct 2011
Location:
Posted: 22nd Nov 2017 09:35
Not at all sure that this is even possible - libraries built with C what only export functions are theoretically usable - but Visual Studio Libraries built on C++ code use MS specific versions of lots of standard libraries and the like - making them incompatible with other compiler/linkers - even trying to use libraries targeted at different versions of Visual Studio can be a nightmare.

Westa
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 22nd Nov 2017 11:10
what Westa says. you could try clang. as it is also an optional compiler of vs. I do not know if he really understands the libs of vs.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Nov 2017 12:14
ok. i will try clang or
i believe i need install msbuild and try compiling with it.
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.2) Radeon R7 265 : Mac mini OS High Sierra (10.13)
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 22nd Nov 2017 12:31
mmh. I did not know MSBuild yet. Interesting.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 22nd Nov 2017 12:49 Edited at: 22nd Nov 2017 12:52
EN
https://en.wikipedia.org/wiki/MSBuild
DE
https://de.wikipedia.org/wiki/MSBuild

https://docs.microsoft.com/de-de/cpp/build/msbuild-visual-cpp
AGK (Steam) V2017.09.25 : Windows 10 Pro 64 Bit : AMD (17.11.2) Radeon R7 265 : Mac mini OS High Sierra (10.13)

Login to post a reply

Server time is: 2024-11-24 06:12:08
Your offset time is: 2024-11-24 06:12:08