473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Linker Error Unresolved External Borland Builder 2006

3
I get this Linker Errors while compiling my program:

[Linker Error] Error: Unresolved external 'vminit()' referenced from
C:\TESTE\TESTE.OBJ
[Linker Error] Error: Unresolved external 'vmalloc(void *, int,
unsigned int, unsigned int)' referenced from C:\TESTE\TESTE.OBJ
[Linker Error] Error: Unresolved external 'vmcomplete(void *)'
referenced from C:\TESTE\TESTE.OBJ
[Linker Error] Error: Unresolved external 'LogError(char *, int, char
*, int)' referenced from C:\TESTE\TESTE.OBJ

vminit, vmalloc, and all others are defined in "vmblock.h" which are included upfront in the cpp file so it "shouldn't" give me this error!

This are my,

Include Search Path:
C:\teste;$(BDS)\include;$(BDS)\include\dinkumware; $(BDS)\include\vcl

Library Search Path:
C:\teste;$(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk

My work directory is c:\teste and I've uploaded to http://pwp.netcabo.pt/yota/teste.zip

Can anyone help me please? :confused:

Thanks in advanced,
yOtA
Jul 17 '06 #1
4 29281
Banfa
9,065 Expert Mod 8TB
Including "vmblock.h" will not prevent link errors, this prevents compiler errors and warnings.

The link errors have occured because whatever library (.lib, .a or .o file) implements the functions defined in "vmblock.h" has not bee included in the link.
Jul 17 '06 #2
yOtA
3
Including "vmblock.h" will not prevent link errors, this prevents compiler errors and warnings.

The link errors have occured because whatever library (.lib, .a or .o file) implements the functions defined in "vmblock.h" has not bee included in the link.

My problem is that there are no .lib/.a/.o files associated. Only the vmblock.h one. The functions are defined in vmblock.h to be used in the cpp.

By the way, the it's contents are:

#ifndef VMBLOCK_H_INCLUDED
#define VMBLOCK_H_INCLUDED

#define VEKTOR 0
#define VVEKTOR 1
#define MATRIX 2
#define IMATRIX 3
#define MMATRIX 4
#define UMATRIX 5
#define PMATRIX 6

void *vminit
(
void
);

void *vmalloc
(
void *vmblock,
int typ,
size_t zeilen,
size_t spalten
);

bool vmcomplete
(
void *vmblock
);


void vmfree
(
void *vmblock
);

#endif

Can you help?
Thanks
Jul 17 '06 #3
Banfa
9,065 Expert Mod 8TB
The functions are defined in vmblock.h to be used in the cpp.
This is the whole point, they are declared in vmblock.h but they are actually defined elsewhere. That is all the header file states is that they exist.

I quick search on the web sugests that it may not be a library file you are looking for but a source file vmblock.cpp in which case you should include that source into your project.

Either way you are missing some components, where did you get vmblock.h from? Go back and see if they have the bits you are missing or alternitively download a whole new version from the web if you can find it.
Jul 18 '06 #4
yOtA
3
You were right,

Thanks for the help, problem solved.
Jul 18 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: KS | last post by:
I am getting linker error for a code that was tested and running. I opened the project in VS.NET 2003 and now i get these errors - I am sure it is some options issue. Can anyone please help? ...
1
by: Laszlo | last post by:
Hi all, As a novice I installed PostgreSQL 7.2.1 on Win32 and works, Borland C++Builder Enterprise Suite 5.0 (build 12.34) what works too. I decided to combine these two programs and develop a...
1
by: endo55 | last post by:
Hi I've got the following errors when trying to compile a program cvision error LNK2001: unresolved external symbol _IID_IGraphBuilde cvision error LNK2001: unresolved external symbo...
4
by: Joel Whitehouse | last post by:
Hello All, I have a Visual C++ 2003 dll solution in a directory called "Antenna Test Range Control", and when I comile it, I get the error LNK1104: cannot open file "antenna.obj". When I remove...
3
by: Chucker | last post by:
Hi Folks, I got a Wrapper Dll around a native C++ static library. In .NET 1.1 this worked fine. When moving to .NET 2.0 I get a couple of unresolved externals / linker errors: Error 16 error...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
1
by: iiitsunny | last post by:
i have ported one project which was working in VC6 to VC7. Now the project is working fine in VC7 also. I have made some additions in VC7 environment only. But the problem is that the project is not...
12
by: kath.neumann | last post by:
Hi, I just started to get a grip on C++ and and went through the tutorial. However, not even the standard "hello world" exercise works out :( I do get a linker error " Unresolved external...
1
by: Deepath G | last post by:
This is deepath.. I am getting some linker error when i am trying to connect Websphere MQ using Borland C++ Builder 2006 using imqi.hpp on windows. Error Message ----------------------- ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.