Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To compile your first program run the following:

GCC:

 

 

Panel

gcc -c -pthread -fPIC -Wall -Werror -fno-strict-aliasing -m64 -Wfatal-errors -Wno-unused-local-typedefs -Wno-vla -Wno-attributes -O2 -c -O2 -I/usr/lmx-sdk-4.6.1/include/ example.c
 

gcc -static-libgcc -o local local.o /usr/lmx-sdk-4.6.1/linux_x64/liblmxclient.a -pthread -lrt -ldl

 

...

MSVC: 

 

Panel

cl /WX /MT /c /O2 -D_CRT_SECURE_NO_DEPRECATE /I “C:\Program Files\X-Formation\LM-X SDK v4.6.1 win64_x64\include\” example.c

 

link /WX /opt:noref example.obj “C:\Program Files\X-Formation\LM-X SDK v4.6.1 win64_x64\win64_x64\liblmxclient_mt.lib”

...

Running your application

Now you should have the following files in your current directory:

...