Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 153208 - crt0.o, Mac OS-X Leopard, and NetBeans
crt0.o, Mac OS-X Leopard, and NetBeans
Status: NEW
Product: cnd
Classification: Unclassified
Component: Debugger
Macintosh Mac OS X
: P2 (vote)
: 7.0
Assigned To: Maria Tishkova
Depends on:
  Show dependency treegraph
Reported: 2008-11-14 10:29 UTC by laurent01
Modified: 2016-07-06 14:38 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description laurent01 2008-11-14 10:29:17 UTC
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. 

Expected Results:
Download the library, and issue the correct results (e.g., such a message).

Actual Results:
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 :
#include <stdio.h>
void hello (void)
    printf ("Hello ! Si ça s'affiche, c'est que ça marche.\n");
iii) main.c :
#include <stdio.h>
#include "hello.h"
main ()
        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.
Yours sincerely,

Laurent Delphin
Comment 1 _ gordonp 2008-11-14 15:46:56 UTC
Changing to enhancement. We don't currently support stopping before main. Its
something we should consider. Possibly as an option?

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo