FieldTalk Modbus® Master Protocol Library C++ Editions |
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
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
Copyright © 2002-2004
FOCUS Software Engineering Pty Ltd, Australia.
All rights reserved.
Please see the Notices page for trademark notices. Last updated: 26 May 2004 |