I use NetBeans (v. 6.5 Beta, now RC2 ; v. 6.1 not used by downloaded) to develop scientific programmes coded in
Fortran. I am currently building dynamic libraries, as well as static libraries (but not preferred as indicated in your
documentation). Linking my libraries with a main.f - or main.c to test this process through a simple hello programme)
always fails. One reason put forward by NetBeans : crt0.o not found.
With the Finder, I looked for crt0.o. It doesn't exist. I found crt1.o in /Developer/STKs/MacOSX10.5.sdk/usr/lib, but
NetBeans doesn't call it (through dyld and ld for the linking phase).
The APPLE Technical Q&A 1118 is very explicit and very useful, but not with NetBeans it seems. Not found crt0
(.c, .as ???) in the Darwin download page.
Steps to Reproduce:
Linking (with -L and -l options) libraries - dynamic or static - with NetBeans.
Download the library, and issue the correct results (e.g., such a message).
Some errors :
i) dyld : library not downloaded.
ii) crt0.o not found.
iii) Reason : image not found.
Mac OS-X Leopard 10.5.5. Xcode 3.1.1. NetBeans 6.5beta, NetBeans 6.5RC2, NetBeans 6.1.
First programme used : a radiative transfer simulation software coded in Fortran.
To test the "error", having wriiten a simple Hello programme with a library :
i) hello.h :
void hello (void) ;
ii) hello.c :
void hello (void)
printf ("Hello ! Si ça s'affiche, c'est que ça marche.\n");
iii) main.c :
hello () ;
Building the library linhello.dylib (or libhello.a) with hello.c. Then linking with main.o. With GNU gcc in a Terminal
window, it works. Not with NetBeans. Regrets.
Hoping you a good receipt.
Changing to enhancement. We don't currently support stopping before main. Its
something we should consider. Possibly as an option?