Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Bauer097), 2,317 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Bauer097, riggi89, shuhari, KD1990, Student_64151
19231 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
C++ linker problems #486587
09/08/22 08:52
09/08/22 08:52
Joined: Jan 2022
Posts: 81
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 81
Budapest
Hello,

The C++ compiler works fine, but when I want to use C++ standard libraries I get a lot of syntax errors.

Img1:
The include path that Zorro wants to use
I modified the compile.bat for echo the INCLUDE:
Code
@call ECHO %INCLUDE%


Img2:
When I make a new C++ console application project in Visual Studio 2022, this is the basic include path I see in Project => Properties => Configuration Properties => VCC Directories => General => Include Directories

My problem is that I can't include standard C++ libraries.

In the simple console application Visual Studio project, is totally OK to do this:
Code
#include <vector>


But when I do the same in a Zorro project, and press [Test] button, I see a lot of syntax errors in the Zorro terminal (Img3).

It founds the <vector>, but a lot of definition is missing, which is common in the Visual Studio project.
Could you help me what am I missing during the compile process?

This is the Zorro code what throws the errors:

Code
#include <zorro.h>
#include <vector>

using namespace std;

DLLFUNC void main(){
    printf("hello");
}


Thank you!

Attached Files img1.pngimg2.pngimg3.png
Last edited by NorbertSz; 09/08/22 08:53.
Re: C++ linker problems [Re: NorbertSz] #486590
09/08/22 12:48
09/08/22 12:48
Joined: Feb 2017
Posts: 1,830
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,830
Chicago
Include the Zorro header last.

Re: C++ linker problems [Re: AndrewAMD] #486591
09/08/22 13:53
09/08/22 13:53
Joined: Jan 2022
Posts: 81
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 81
Budapest
OUCH, thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1