General information
Title:
Creating C/C++ Libraries...
Can anyone answer a question I have about creating libraries in
C/C++?
I am new to programming in Visual C++ and am trying to work through
learning how to create external libraries for VFP. I am using Borland
C++ 5.01 and am unable to link my libraries. Currently, I have been
trying to do a simple "Hello, World" function, following the
explanations in the Professional Features Guide.
This is my code ;
// include the library construction header file
#include
void hello(ParamBlk *parm) // the function definition
{
_PutStr("\nHello, World!\n"); //print the message
};
// the FoxInfo structure registers the function
FoxInfo myFoxInfo[]={
{"HELLO",(FPFI) hello, 0, ""},
};
//the FoxTable structure
FoxTable _FoxTable={
(FoxTable *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};
The source compiles okay, but when I try to link the file, I get this
message...
Error: Unresolved external '__PutStr' referenced from module
mhello.c
Is there something I'm doing wrong other than using Borland???
Ken Morehouse
Production Support Programmer
MacKenzie-Childs
Aurora, NY
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only