Symbol undefined? Linker error!

E

el prinCipante

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!?
 
A

Alexander Bartolich

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.
 
M

Mark McIntyre

On 26 Jan 2004 04:17:30 -0800, in comp.lang.c ,
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top