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
6.x
Macintosh Mac OS X
: P2 (vote)
: 7.0
Assigned To: henk89
issues@cnd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-14 10:29 UTC by laurent01
Modified: 2014-04-14 19:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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
Summary: 
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.

Regression:
Mac OS-X Leopard 10.5.5. Xcode 3.1.1. NetBeans 6.5beta, NetBeans 6.5RC2, NetBeans 6.1.

Notes:
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. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo