Using Mac OS X Lion and FreePascal 2.7.1 I get this error while compiling and linking one of the examples:
I used dglOpenGL to build the library, but integrated those changes in dglOpenGL to get it working properly on Mac OS X.
Assertion failed: (_dependentDylibs.size() != 0), function File, file /SourceCache/ld64/ld64-123.2.1/src/ld/parsers/macho_dylib_file.cpp, line 391.
0 0x102efd71c __assert_rtn + 76
1 0x102f562c1 mach_o::dylib::File<x86>::File(unsigned char const*, unsigned long long, char const*, long, unsigned int, bool, bool, bool, ld::MacVersionMin, ld::IPhoneVersionMin, bool) + 2721
2 0x102f4abe2 mach_o::dylib::parse(unsigned char const*, unsigned long long, char const*, long, Options const&, unsigned int, bool) + 706
3 0x102f5c0a5 ld::tool::InputFiles::makeFile(Options::FileInfo const&) + 709
4 0x102f5d6f9 ld::tool::InputFiles::InputFiles(Options&, char const**) + 665
5 0x102efd947 main + 311
I'm pretty sure I was able to compile it on Mac OS Snow Leopard, but it crashed when I tried to execute one of the examples.