|
|
|
| Info | Support | Contact | About | ||
|
Linking your Applications against the LibraryLinux, UNIX and QNX Systems: Compiling and Linking ApplicationsLet's assume the following project directory structure:
myprj
|
+-- fieldtalk
|
+-- doc
+-- src
+-- include
+-+ lib
|
+-- linux (exact name depends on your platform)
Add the library's include directory to the compiler's include path. Example: c++ -Ifieldtalk/include -c myapp.cpp Add the file name of the library to the file list passed to the linker. Example: c++ -o myapp myapp.o fieldtalk/lib/linux/libmbusmaster.a Windows Systems: Compiling and Linking ApplicationsLet's assume the following project directory structure:
myprj
|
+-- fieldtalk
|
+-- doc
+-- src
+-- include
+-+ lib
|
+-- win32_vc (exact name depends on your platform)
Add the library's include directory to the compiler's include path. Visual C++ Example: cl -Ifieldtalk/include -c myapp.cpp bcc32 -Ifieldtalk/include -c myapp.cpp Add the file name of the library to the file list passed to the linker. Visual C++ only: If you are using the Modbus/TCP protocol you have to add the Winsock2 library Ws2_32.lib. Visual C++ Example: cl -Fe myapp myapp.obj fieldtalk/lib/win32_vc/libmbusmaster.lib Ws2_32.lib bcc32 -e myapp myapp.obj fieldtalk/lib/win32_vc/libmbusmaster.lib |
||||||||||||||||||||||||||||||||
| Back | Top of page | Info | Support | Contact | About | ||
|
Information in this document is subject to change without notice.
Copyright © 2000-2010 proconX Pty Ltd.
All rights reserved.
All product and brand names mentioned on this page may be trademarks or registered trademarks of their respective owners. |