April 7, 201214 yr Hey all. I have bought the NGX while ago and today started working with its SDK. I linked it to the SimConnect.lib but it says there are 8 errors with this file Error 2 error C2059: syntax error : '<'..\SimConnect.lib 1 Error 3 error C2018: unknown character '0x60' \SimConnect.lib 2 Error 4 error C2470: '´' : looks like a function definition, but there is no parameter list; skipping apparent body ..\SimConnect.lib 3 Error 5 error C2059: syntax error : '>' ..\SimConnect.lib 3 Error 6 error C2059: syntax error : ';' ..\SimConnect.lib 3 Error 7 error C2630: ';' found in what should be a comma-separated list ..\SimConnect.lib 3 Error 8 error C2059: syntax error : '='..\SimConnect.lib 3 The file is the original one, didn't touch it What could be the problem? Thanks in advance
April 8, 201214 yr Have you added the lib directory and inc directory for the simconnect dll and lib to your projects. Right click on your project - select properties. C++ - General - add in the inc directory from the FSX SDK Linker - General - add in the lib direcotry of the FSX SDK
April 8, 201214 yr Author Thank you for reply I have done what you offerd, still got 8 error just as before Error 2 error C2059: syntax error : '<' ..\SimConnect.lib 1 Error 3 error C2018: unknown character '0x60' ..\SimConnect.lib 2 Error 4 error C2470: '´' : looks like a function definition, but there is no parameter list; skipping apparent body ..\SimConnect.lib 3 Error 5 error C2059: syntax error : '>' ..\SimConnect.lib 3 Error 6 error C2059: syntax error : ';' ..\SimConnect.lib 3 Error 7 error C2630: ';' found in what should be a comma-separated list ..\SimConnect.lib 3 Error 8 error C2059: syntax error : '='..\SimConnect.lib 3
April 8, 201214 yr Are you linking to the right lib? The one at C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Core Utilities Kit\SimConnect SDK\lib modification date 26/09/2007 Also try adding the lib to the Project Properties -> Linker -> Input -> Additional Dependencies
April 8, 201214 yr Author Hey Dario how are you?:) I have made sure both directories are correct and added the the directory to input with no results. An image with the directories is added, could you please confirm i have did it as well? Thank you both for helping
April 8, 201214 yr Hey Dario how are you?:) I have made sure both directories are correct and added the the directory to input with no results. An image with the directories is added, could you please confirm i have did it as well? Thank you both for helping You have to link each lib, not the directory. At least I think so
April 8, 201214 yr Author I actually didn't really understand how to do it.. Would you please explain it deeper please? or maybe help me individually..?
April 8, 201214 yr Commercial Member It's not a linking related error, rather points to a syntax error. There's no way to tell without looking at the code. Also might not be exactly 8 errors. With C++, all it takes is one missing ";" and you get a deluge of errors as a consequence. Gerald R https://www.multicrewxp.com
April 8, 201214 yr Author Usually i use C# so I am really not familiar with C++. I didn't write the SimConnect.lib, its came apart of the FSX SDK Maybe there are mistakes in my code?
April 8, 201214 yr Is it possible to manipulate the FMC to add in company menus or is this just for adding drivers for hardware Ash KeelsonLIAN LI DK-02 Desk/Intel Core i7 6700K Skylake 4.0 ghz/ H110i Liquid Cooler/ ASUS Extreme VIII/ EVGA GTX 1080 8GB/ 32GB G.Skills DDR4 RAM/ Intel SSD 1TB/Samsung 1TB/ Crucial 150GB/Windows 10/Prepar3D v3.3
April 8, 201214 yr Ash: At this time, it is not possible to communicate with FMC or to read from CDU, all you can do is push buttons. --Peter Fabian
April 8, 201214 yr Author Could one of you upload a project which works so i will find my mistake? Thank you
April 9, 201214 yr Author By the way If it matters, FSX and FSX SDK are not installed on the same disk
April 9, 201214 yr I believe there is a C++ VS2010 project in the PMDG SDK. Also this link may help http://forum.simflight.com/topic/71035-pmdg-ngx-sdk/page__st__80 Ned Hamilton
April 9, 201214 yr Author Its not a project but only one CPP and not the entire solution. I will have a look on your link, thank you
Create an account or sign in to comment