Jump to content
Sign in to follow this  
kiek

Simconnect and Dev-C++ problem

Recommended Posts

Hi,Has anybody managed to get it to work with Dev-C++?I try to build the Open and Close example, it compiles OK, but the Linker complains with the following messages:undefined refrence to 'SimConnect_Open@24'undefined refrence to 'SimConnect_Close@4'while I have put SimConnect.lib in the project directory and have add it to the Linker command...?I thought it might be the COFF vs OMF problem, and tried the Borland version of the library, but that was no solution.Nicohttp://www.nicokaan.nl

Share this post


Link to post
Share on other sites

>I try to build the Open and Close example, it compiles OK, but>the Linker complains with the following messages:>>undefined refrence to 'SimConnect_Open@24'>undefined refrence to 'SimConnect_Close@4'>>while I have put SimConnect.lib in the project directory and>have add it to the Linker command...Aren't they references to C++ procedures? I think you need to tell the compiler/linker that they are C, not C++. That should have been accomplished by the SIMCONNECTAPI declaration in front of each declaration in SimConnect.h.You will see that SIMCONNECTAPI is defined just before the declarations as:#if !defined(SIMCONNECTAPI)#define SIMCONNECTAPI extern "C" HRESULT __stdcall#endifMaybe your compiler doesn't understand "C"?RegardsPete


Win10: 22H2 19045.2728
CPU: 9900KS at 5.5GHz
Memory: 32Gb at 3800 MHz.
GPU:  RTX 24Gb Titan
2 x 2160p projectors at 25Hz onto 200 FOV curved screen

Share this post


Link to post
Share on other sites

Hi Pete,Thanks for your help.Yes my compiler understands C.... its'a C/C++ compiler.I have linked C functions to a C++ program before, actually that 's what I'm also doing with my FSCONV program (in C++) using FSUIPC.Any other ideas?Nicohttp://www.nicokaan.nl

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...