Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating C/C++ Libraries...
Message
From
20/06/1997 12:45:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Creating C/C++ Libraries...
Miscellaneous
Thread ID:
00037152
Message ID:
00037152
Views:
76
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
Map
View

Click here to load this message in the networking platform