By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

Linker Error Unresolved External Borland Builder 2006

P: 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
Share this Question
Share on Google+
4 Replies


Banfa
Expert Mod 5K+
P: 8,916
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

P: 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
Expert Mod 5K+
P: 8,916
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

P: 3
You were right,

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

Post your reply

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