A linking problem!

Discussion in 'C Programming' started by Kevin Wan, Aug 10, 2003.

  1. Kevin Wan

    Kevin Wan Guest

    Hi,

    I have encountered a linking problem while using g++ to link our
    product. There are Fortran, C, C++ code in our product. The error
    listed below:

    /usr/bin/ld: final link failed: Bad value
    collect2: ld returned 1 exit status

    But no any reasons or suggestions are given, I'm so puzzled!

    Anyone can give me the solutions or some suggestions?

    Any comments are sincerely appreciated!

    Thanks in advance!
     
    Kevin Wan, Aug 10, 2003
    #1
    1. Advertising

  2. On 10 Aug 2003 05:35:58 -0700
    (Kevin Wan) wrote:
    > Hi,
    >
    > I have encountered a linking problem while using g++ to link our
    > product. There are Fortran, C, C++ code in our product. The error
    > listed below:
    >
    > /usr/bin/ld: final link failed: Bad value
    > collect2: ld returned 1 exit status
    >
    > But no any reasons or suggestions are given, I'm so puzzled!
    >
    > Anyone can give me the solutions or some suggestions?
    >
    > Any comments are sincerely appreciated!
    >
    > Thanks in advance!


    What is your C question?

    --
    char*x(c,k,s)char*k,*s;{if(!k)return*s-36?x(0,0,s+1):s;if(s)if(*s)c=10+(c?(x(
    c,k,0),x(c,k+=*s-c,s+1),*k):(x(*s,k,s+1),0));else c=10;printf(&x(~0,0,k)[c-~-
    c+"1"[~c<-c]],c);}main(){x(0,"^[kXc6]dn_eaoh$%c","-34*1'.+(,03#;+,)/'///*");}
     
    Pieter Droogendijk, Aug 10, 2003
    #2
    1. Advertising

  3. Kevin Wan

    Kevin Wan Guest

    Pieter Droogendijk <> wrote in message news:<>...
    > On 10 Aug 2003 05:35:58 -0700
    > (Kevin Wan) wrote:
    > > Hi,
    > >
    > > I have encountered a linking problem while using g++ to link our
    > > product. There are Fortran, C, C++ code in our product. The error
    > > listed below:
    > >
    > > /usr/bin/ld: final link failed: Bad value
    > > collect2: ld returned 1 exit status
    > >
    > > But no any reasons or suggestions are given, I'm so puzzled!
    > >
    > > Anyone can give me the solutions or some suggestions?
    > >
    > > Any comments are sincerely appreciated!
    > >
    > > Thanks in advance!

    >
    > What is your C question?


    First of all, thanks for your reply!

    Sorry, it's not just a C question, but I was wondering if I should
    post it here! I thought it's just a linking problem and maybe I can
    get some help here!

    Thanks again!
     
    Kevin Wan, Aug 11, 2003
    #3
  4. Kevin Wan

    Artie Gold Guest

    [OT, redirect] Re: A linking problem!

    Kevin Wan wrote:
    > Hi,
    >
    > I have encountered a linking problem while using g++ to link our
    > product. There are Fortran, C, C++ code in our product. The error
    > listed below:
    >
    > /usr/bin/ld: final link failed: Bad value
    > collect2: ld returned 1 exit status
    >
    > But no any reasons or suggestions are given, I'm so puzzled!
    >
    > Anyone can give me the solutions or some suggestions?
    >

    You're off topic here, as your question is not about standard C.

    <OT>
    Try news:gnu.gcc.help
    news:gnu.g++.help

    or

    news:comp.unix.programmer

    Be sure to supply the best information you can about the error.
    </OT>

    HTH,
    --ag

    BTW - be sure to read the FAQ, at:

    http://www.eskimo.com/~scs/C-faq/top.html

    before posting here again.
    --
    Artie Gold -- Austin, Texas
     
    Artie Gold, Aug 11, 2003
    #4
  5. Kevin Wan

    istartedi Guest

    Your .sig

    Pieter Droogendijk <> wrote in message

    >

    char*x(c,k,s)char*k,*s;{if(!k)return*s-36?x(0,0,s+1):s;if(s)if(*s)c=10+(c?(x
    (
    > c,k,0),x(c,k+=*s-c,s+1),*k):(x(*s,k,s+1),0));else

    c=10;printf(&x(~0,0,k)[c-~-
    >

    c+"1"[~c<-c]],c);}main(){x(0,"^[kXc6]dn_eaoh$%c","-34*1'.+(,03#;+,)/'///*");
    }

    rad.c
    rad.c(1) : warning C4131: 'x' : uses old-style declarator
    rad.c(2) : warning C4013: 'printf' undefined; assuming extern returning int
    rad.c(3) : warning C4715: 'x' : not all control paths return a value

    The first warning is an easy fix, the 2nd one is forgiveable since we all
    know what
    to #include, the 3rd one is just not very tidy. Maybe the compiler is just
    being persnickety
    and honking at code that's unreachable anyway, but I haven't checked it.

    Otherwise, I like it! Is there a program that takes arbitrary strings and
    converts them to obfuscated C, or did you hand-craft it?

    --$teve
     
    istartedi, Aug 12, 2003
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tinoosh

    Linking problem in Primetime

    tinoosh, May 6, 2005, in forum: VHDL
    Replies:
    1
    Views:
    630
    topgun
    May 9, 2005
  2. Joerg M. Colberg

    Linking problem

    Joerg M. Colberg, Jul 2, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    431
    Joerg M. Colberg
    Jul 7, 2004
  3. =?Utf-8?B?Y2hyaXM=?=

    linking help file problem ..

    =?Utf-8?B?Y2hyaXM=?=, Oct 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    394
    =?Utf-8?B?Y2hyaXM=?=
    Oct 25, 2004
  4. Hristo Stevic

    Linking Module Problem?

    Hristo Stevic, Mar 6, 2004, in forum: Java
    Replies:
    2
    Views:
    321
    John W. Kennedy
    Mar 6, 2004
  5. enantiomer
    Replies:
    1
    Views:
    2,026
    Owen Jacobson
    Mar 12, 2005
Loading...

Share This Page