Symbol undefined? Linker error!

Discussion in 'C Programming' started by el prinCipante, Jan 26, 2004.

  1. I am a total novice. And granted this probably is a very simple
    question, it still stops me from finishing my thesis. Thanks in
    advance for any postings.

    I am using a library routine and apparently I have all the necessarý
    files to compile properly. But my compiler comes up with the following
    message

    link samain,,,user32+kernel32/noi;
    OPTLINK (R) for Win32 Release 7.50B1
    Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved

    samain.obj(samain)
    Error 42: Symbol Undefined ?free_vector@@YAXPAMJJ@Z (void cdecl
    free_vector(flo
    at *,long ,long ))
    samain.obj(samain)
    Error 42: Symbol Undefined ?amotsa@@YAMPAPAMPAM1H11P6AM1@ZH1M@Z
    (float cdecl am
    otsa(float **,float *,float *,int ,float *,float *,float cdecl
    (*)(float *),int
    ,float *,float ))
    samain.obj(samain)
    Error 42: Symbol Undefined ?ran1@@YAMPAJ@Z (float cdecl ran1(long *))
    samain.obj(samain)
    Error 42: Symbol Undefined ?idum@@3JA (long idum)
    samain.obj(samain)
    Error 42: Symbol Undefined ?vector@@YAPAMJJ@Z (float *cdecl
    vector(long ,long )
    )

    --- errorlevel 5

    Does anyone know what this means!?
    el prinCipante, Jan 26, 2004
    #1
    1. Advertising

  2. begin followup to el prinCipante:
    > samain.obj(samain)
    > Error 42: Symbol Undefined ?free_vector@@YAXPAMJJ@Z (void cdecl
    > free_vector(float *,long ,long ))


    This looks like a mangled name in C++ style.

    > Does anyone know what this means!?


    You are off-topic.

    --
    Für Google, Tux und GPL!
    Alexander Bartolich, Jan 26, 2004
    #2
    1. Advertising

  3. On 26 Jan 2004 04:17:30 -0800, in comp.lang.c ,
    (el prinCipante) wrote:

    >I am a total novice. And granted this probably is a very simple
    >question, it still stops me from finishing my thesis.
    >
    > I am using a library routine and apparently I have all the necessarý
    >files to compile properly.


    Apparently not. Or if you do have them, you're not using them
    properly.

    >But my compiler comes up with the following
    >message


    which means "I can't find which file this function is in".

    Either
    a) the file is in a library you don't have or
    b) you compiled samain wrong (eg as C++ instead of c), and the names
    are all mangled.

    Either way, this is offtopic here. You should ask in a group
    specialising in your compiler.

    --
    Mark McIntyre
    CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
    CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    Mark McIntyre, Jan 27, 2004
    #3
    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. Wolfgang Rueckert

    Linker error - unsolved external symbol

    Wolfgang Rueckert, Jun 30, 2003, in forum: C++
    Replies:
    0
    Views:
    711
    Wolfgang Rueckert
    Jun 30, 2003
  2. pervinder
    Replies:
    1
    Views:
    649
    Jacek Dziedzic
    Sep 22, 2004
  3. Serge
    Replies:
    4
    Views:
    8,691
    Paavo Helde
    Dec 19, 2004
  4. Replies:
    4
    Views:
    4,888
    Default User
    Feb 10, 2006
  5. Replies:
    3
    Views:
    240
Loading...

Share This Page