Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,170 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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: 58
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

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

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

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1