Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 57
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 57
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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

Joined: Jan 2022
Posts: 57
OUCH, thank you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1