FieldTalk Modbus® Slave Library C++ Editions |
![]() |
myprj | +-- fieldtalk | +-- doc +-- samples +-- 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
myprj | +-- fieldtalk | +-- doc +-- samples +-- src +-- include +-+ lib | +-- win | +-- win32 | +-- release
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/win/win32/release/libmbusmaster.lib Ws2_32.lib
Copyright © 2002-2006
FOCUS Software Engineering Pty Ltd, Australia.
All rights reserved.
Please see the Notices page for trademark notices. Last updated: 20 Oct 2006 |