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 additional 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.2.1.dll is available in the path.

GCC (GNU Compiler Collection)

Static Linking

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

Digest

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

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

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

Digest

g++ Digest.cpp -ldwfcore -o digest

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

Developers have more options with OS X and XCode in that the same steps for GCC Static Linking and Dynamic Linking can be followed from the shell, while XCode users can take advantage of the project files provided by Apple for building the DWF Core Library samples. These XCode projects are valuable reference resources for building your own applications with the DWF Core Library.


Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5