Jump to content
The simFlight Network Forums

FSUIPC SDK for C++


Recommended Posts

Dear Peter,

for switching some output signals I need to read out some FSUIPC Offsets to program my USB Output modules. For them I use successful C++ (Visual C++ 2008 Express). But right at the beginning to try your sdk out (FSUIPC Hello) I get an compiling error like:

LINK : fatal error LNK1104: Datei "LIBC.lib" kann nicht geöffnet werden.

(in English: File "LIBC.LIB could not opened)

What am I did wrong? Or better: where can I get this Library "libc.lib"?

THX a lot

Erwin

Link to comment
Share on other sites

With other words:

What modules are necessary for use in Visual C++?

Now I have installed these two files from the SDK:

- FSUIPC_User.h

- FSUIPC_User.lib

Or is it correct to install the files from the subdirectory Lib Source too? (IPCUser.h & .c)

Best regards.

Erwin

Link to comment
Share on other sites

Erwin,

Probier mal Projekt Eigenschaften -> Konfigurationseigenschaften -> Linker -> Eingabe -> Bestimmte Standardbibliotheken Ignorieren und dort die libc.lib eintragen.

Ich würde aber vorschlagen, statt dem Monster Visual Studio beizubringen was du willst, schreib lieber ein Makefile, was dir die benötigten Libraries und Headers einbindet. Das sind keine 20 Zeilen Code und das versteht nmake genauso wie GNU make und du kannst es später auch nach MSVC importieren.

Du lernst ja auch nicht auf einem A380 fliegen und steigst dann auf Cessna 152 um :)

Gruß,

Philipp

(I told him where to find the option in the German version of MSVC, but suggested he should write a small Makefile instead of dealing with a monster like MSVC. Writing a Makefile is like learning to fly on a Cessna 152. Hacking this stuff into MSVC is like flying an A380).

Link to comment
Share on other sites

Danke vielmals für Deine Antwort.

Nachdem ich eine Weile in dem (immerhin kostenlosen) Monster gesucht habe, habe ich tatsächlich das Feature gefunden und aktiviert. (Obwohl Deine Bescheibung so knapp war, dass man fast schon Hellseher sein musste, aber der MEnsch hat auch seinen Ehrgeiz. ;-)

Mal sehen, ob das Ganze dann auch funktioniert. Hoffen wir das Beste. Ich meld mich dazu morgen noch mal.

Zum Thema make, GNU make etc.: Es gibt auch Leute, die haben sich tatsächlich mit LINUX & Co. noch nie beschäftigt. Einfach keine Zeit.

Mit Windows zwangsläufig um so mehr. Bis jetzt hat sich mir auch noch kein Nutzen aufgezeigt, mich damit zu beschäftigen. Außer dem Kostenfaktor, der aber durch die zusätzliche Zeit (zumindest für mich) ohne Weiteres wieder zunichte gemacht wird. Also für Menschen mit wenig Zeit bzw. solche, die mit ihrer ZEIT Geld verdienen müssen, eher keine Alternative. Es sei denn, sie sind Profis. Dann brauchen sie aber bestimmt nicht in solche Foren wie hier zu schauen.

Also bis bald!

LG Erwin

Link to comment
Share on other sites

What modules are necessary for use in Visual C++?

Now I have installed these two files from the SDK:

- FSUIPC_User.h

- FSUIPC_User.lib

Since the complete source for the interface to FSUIPC is also provided in the SDK package, you can simply pull it out and build it into your program with any minor adjustments you need to make it compile correctly. This is necessary in any case when the LIB file format is not compatible with your compiler.

Regards

Pete

Link to comment
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.