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

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 require 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

These 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

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 May 17 12:05:11 2005 for Autodesk DWF Core Library by  doxygen 1.4.1