Jump to content
The simFlight Network Forums

FSUIPC SDK Compile Issue


Recommended Posts

Hello,

I am experimenting around with the FSUIPC SDK in C. I tried loading the sample project into NetBeans IDE 8.2 and added the linker for the FSUIPC_User.lib, but it is still failing to compile. Here is the output...

 

Quote

cd 'D:\Andrew Erhardt\Documents\Projects\FS Client'
C:\cygwin64\bin\make.exe -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/fs_client.exe
make[2]: Entering directory '/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client'
mkdir -p dist/Debug/Cygwin-Windows
g++     -o dist/Debug/Cygwin-Windows/fs_client build/Debug/Cygwin-Windows/main.o FSUIPC_User.lib
build/Debug/Cygwin-Windows/main.o: In function `WinMain':
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:28: undefined reference to `FSUIPC_Open'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:28:(.text+0x3d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Open'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:42: undefined reference to `FSUIPC_Write'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:42:(.text+0x74): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Write'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:43: undefined reference to `FSUIPC_Process'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:43:(.text+0x8c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Process'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:50: undefined reference to `FSUIPC_Read'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:50:(.text+0xaf): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Read'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:52: undefined reference to `FSUIPC_Process'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:52:(.text+0xc2): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Process'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:76: undefined reference to `FSUIPC_Close'
/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client/main.cpp:76:(.text+0x2ab): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `FSUIPC_Close'
build/Debug/Cygwin-Windows/main.o:main.cpp:(.rdata$.refptr.FSUIPC_FS_Version[.refptr.FSUIPC_FS_Version]+0x0): undefined reference to `FSUIPC_FS_Version'
build/Debug/Cygwin-Windows/main.o:main.cpp:(.rdata$.refptr.FSUIPC_Version[.refptr.FSUIPC_Version]+0x0): undefined reference to `FSUIPC_Version'
collect2: error: ld returned 1 exit status
make[2]: *** [nbproject/Makefile-Debug.mk:65: dist/Debug/Cygwin-Windows/fs_client.exe] Error 1
make[2]: Leaving directory '/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client'
make[1]: *** [nbproject/Makefile-Debug.mk:59: .build-conf] Error 2
make[1]: Leaving directory '/cygdrive/d/Andrew Erhardt/Documents/Projects/FS Client'
make: *** [nbproject/Makefile-impl.mk:40: .build-impl] Error 2

BUILD FAILED (exit value 2, total time: 675ms)

Thanks for the assistance! 

Link to comment
Share on other sites

9 minutes ago, andrewerhardt said:

I am experimenting around with the FSUIPC SDK in C. I tried loading the sample project into NetBeans IDE 8.2 and added the linker for the FSUIPC_User.lib, but it is still failing to compile.

The source for the LIB is provided. Why not just use that directly? It's small enough to just cut and paste into your code. And you have full control then.

I've no idea what "NetBeans" means. The stuff I provide all assumes you use Visual Studio. If you are using some sort of .NET managed code you must use the .NET DLL by Paul Henty -- please see the subforum above dealing with this.

12 minutes ago, andrewerhardt said:

Here is the output...

Sorrry, but that's unreadable nonsense to me. If you want me to read things please make sure it's at least readable.

Pete

 

Link to comment
Share on other sites

Quote

The source for the LIB is provided. Why not just use that directly? It's small enough to just cut and paste into your code. And you have full control then.

I did that, and the error has gone away. Now, I'm presented with another issue that seems to do with my Compiler Config. 

Quote

Sorrry, but that's unreadable nonsense to me. If you want me to read things please make sure it's at least readable.

Understandable; thought it would help narrow down the issue. Thanks for the reply, 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.