Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linker Error (SVGACC)

Status
Not open for further replies.

OSProgrammer

Programmer
Oct 30, 2003
29
SA
Hi!

I'm Using SVGACC Library And When i Compile My Source-Code
The Linker Gives an error like this:

Undefined Symbol "_Symbol" in module noname00.cpp

So What am i doing wrong?

the include files for svgacc library is included successfully and lib files too.

(For Getting Svgacc library, Try & Search it in Google "Svgacc20.zip")

Bye
Programmerx
 
This is the basic command line syntax, if you were using GCC.

The principle is the same for all compilers, so you need to figure out what is appropriate for your compiler.

[tt]g++ -o prog prog.cpp -I/path/to/header -L/path/to/lib -lname_of_lib[/tt]

red The name of the output file
yellow The name of the source file(s)
green A list of extra directories containing header(.h) files (which you #include)
blue A list of extra directories containing library(.lib,.a) files
magenta The name(s) of the libraries you want the linker to search

If you have a compiler with a graphical Integrated Development Environent (IDE), then many of these options will be set via various dialogs. Typically, these can be found under something along the lines of "project settings".

The green option would typically be under the compiler or the pre-processor option

The blue and magenta options would typically be under the linker options

--
 
Hi Salem!

I'm Using Borland C++ 3.1
Please Help me ...

Bye
OSWriter
 
"Undefined Symbol "_Symbol" in module noname00.cpp"

It seems that your source code has a file named noname00.cpp. Now the problem is that you are using some symbol with the name "Synmbol" in this file(noname00.cpp). The symbol can be a function call or some global variable that you have declared as extern. This is because your compiler has found a prototype/extern declaration for this symbol which your linker was unable to resolve.

Check your code or post that file here.

Hope this helps.
 
Hi gasingh!

You did'nt Get My Problem.
I Mean The Error For Example is like this:

Undefined Symbol '_videosetmode' in module 'noname00.cpp'
(Unresolved External)

Bye


 
Like I said, you need to read the manual for YOUR compiler, to find out how to specify additional libraries. I showed you the kinds of things you need to look for, but the detail is specific to YOUR compiler.

I can't help you with the detail of YOUR compiler because I'm not familiar with it.



--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top