Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 16,510 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 70
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 70
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,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
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: 70
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1