dorna
2008-08-08 23:10:07 UTC
Can someone help me with this! I'm having a problem buiding my simple gpib (readin/writing to VNA) program in dev c++. So even this following simplest of programs gives me a linker error: #include <stdio.h>#include <stdlib.h>#include <malloc.h>/* * Include the WINDOWS.H and DECL-32.H files. The standard Windows * header file, WINDOWS.H, contains definitions used by DECL-32.H and * DECL-32.H contains prototypes for the GPIB routines and constants. */ #include <windows.h>#include "ni488.h"int main() { int ud0; ud0=ibdev(0,16,0,13,1,0); //takes the addresses, 16 is the address of the device(VNA)} This is a C project, I have added gpib-32.obj to the project and also the ni488.h. I got both of these files form the languages\microsoft C directory in national instruments directory. I get this error: [Linker error] undefined reference to `***@24' What is going on! none of the sample programs work either. Is it because it's dev c++? Thanks so much for helping!!