Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Samples

Several simple sample shell applications are provided to illustrate basic usage of some core classes and interfaces. They are not intended to be or do anything meaningful except serve as addition documentation.

Note:
Microsoft Visual Studio users should consult the build configurations in the project files to see how the pre-preprocessor build flags are set.

Building the Samples

Microsoft Visual Studio

Simply open the Visual Studio project file or solution and build the desired configuration. DLL build configurations will required that the appropriate (debug or release) version of dwfcore.1.0.1.dll is available in the path.
Note:
The samples build against the current "preferred" compiler version which at this time is MSVC 7.1. To build and run with MSVC 7.0 or MSVC 8.0, manually alter the include and link paths accordingly.

GCC (GNU Compiler Collection)

Static Linking

This section shows how the sample applications can be built using the static core library.

Files

g++ -I../../../develop/global/src/ -I/usr/include Files.cpp ../../../develop/global/src/dwfcore/.libs/libdwfcore.a -lz -o files

Strings

g++ -I../../../develop/global/src/ -I/usr/include Strings.cpp ../../../develop/global/src/dwfcore/.libs/libdwfcore.a -o strings

Threads

g++ -I../../../develop/global/src/ -I/usr/include Threads.cpp ../../../develop/global/src/dwfcore/.libs/libdwfcore.a -lpthread -o threads

UUID

g++ -I../../../develop/global/src/ -I/usr/include UUID.cpp ../../../develop/global/src/dwfcore/.libs/libdwfcore.a -o uuid

See the GCC Static Linking section of the main page for more details.

Dynamic Linking

This sections show how the sample applications can be built using the shared core library.

Files

g++ Files.cpp -ldwfcore -o files

Strings

g++ Strings.cpp -ldwfcore -o strings

Threads

g++ Threads.cpp -ldwfcore -o threads

UUID

g++ UUID.cpp -ldwfcore -o uuid

Apple XCode

TBD
Generated on Sat May 7 09:53:53 2005 for Autodesk DWF W3D Toolkit by  doxygen 1.4.1