Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 13th, 2006, 04:51 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can any1 help me out

#include <windows.h>
#include <string.h>
#include <stdio.h>
#include "WINDECL.H"
#include<stdlib.h>
//#include "decl-32.h"

/* Size of ibrd buffer */
#define BUF_SIZE 256
#define DEV_NAME "SMH"


/* Misc */
#define FALSE 0
#define TRUE 1
#define TIMER_NUM 1

int main()
{
    int device;
    char buffer[100];
    int InitMeter(char *devname);
    device = InitMeter(DEV_NAME);
    //ibwrt(device, "RF?" , 100);
    //ibrd (device, buffer,100);
    //printf("RF=%s \n",buffer);
    return 0;
}


int InitMeter(char *DevName) {
     int device;
     device = ibfind(DevName); /* Open the device */
     printf("device=%d\n",device);
     return (device);
}

i am attaching my code in this form.I am interfacing a signal generator using gpib bus.when ever i run this code,i am getting a error as mensioned below.could any 1 please help me out in this issue.

  [Linker error] undefined reference to `ibfind@4'
  ld returned 1 exit status
 E:\Dev-Cpp\Examples\Makefile.win [Build Error] [devc++test.exe] Error 1 .

Waiting for ur favourable reply
Reply With Quote
  #2 (permalink)  
Old September 26th, 2006, 05:09 PM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi.

this is a linker error.
so the message "undefined reference to ...." means that the linker can't find this function in libraries attached to your application.

make sure you include the library that contains the ibfind() function. so the linker can use it to resolve the link.

wish this help you.



Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Any1 have a TBH CustomEvents Source? krainov BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 28th, 2007 01:54 AM
Any1 no how 2 create 1-2-1 chat rooms? jamalserroukh Javascript How-To 1 May 22nd, 2007 08:43 AM
any1 can help me, pls... ck C++ Programming 1 February 24th, 2005 07:51 AM
any1 can help me, pls... ck Visual C++ 1 February 23rd, 2005 09:02 PM
Can any1 help me?! Garri Visual C++ 1 July 6th, 2004 01:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.