04-11-2016 12:30 PM - edited 04-11-2016 12:52 PM
I am having some trouble when try to use the 2013 CVI function.
in the main routine I include the hearder file of GetCompName();
#include "toolbox.h"
defined the variable with
char ComputerName[MAX_COMPNAME_LEN];
and in Main.c I just put GetCompName(ComputerName);
but I keep getting the error message: error: Undefined symbol '_GetCompName@4' referenced in "f:\XXX\Test\cvibuild.test\Debug\test.obj". everything is fine if I comment out the section of GetCompName(ComputerName);
Is there anything I missed? Or is it because the system have compatible issue? I am using Windows 7 64bit environment.
Solved! Go to Solution.
04-11-2016 12:49 PM
Hello,
this function GetCompName() belongs to the Programmer's Toolbox, so you need to include the respective include file
include <toolbox.h>
04-11-2016 12:54 PM
Hi Wolfgang,
Thank you for the reply, I did include the library before using it with #include "toolbox.h"
But the error remains.
04-11-2016 01:04 PM
You also will need to add the library to your project. This can be done in two ways:
- Use the Library / Customize menu to add \toolslib\toolbox\toolbox.fp to your libraries
or
- Use Edit / Add Files to Project to add toolbox.fp to your project
04-11-2016 01:28 PM
Thank you for the help!
That works.
04-11-2016 01:55 PM
My pleasure