Test and Measurement Forum

Compiler does not finds definition of HRDL functions

Post your C and C++ discussions here

Compiler does not finds definition of HRDL functions

Postby Philemon » Mon Mar 28, 2016 9:52 am

Hello to all,

First of all, i would like to say that i'm not very familiar with some terms, so you might see some mistakes. i'm sorry for that! :) now, my problem is that I am writing a program to run the ADC-24 High-resolution data logger. the thing is that my compiler, when i compile my program, produces an error saying that all the functions i have used (ex HRDLOpenUnit, HRDLCloseUnit, HRDLRun etc) are not defined. i have attached HRDL.h, resource.h and picohrdl.lib, but still nothing happens.

can someone help me with this please?

thanks you very much!!
philemon
Philemon
Newbie
 
Posts: 0
Joined: Mon Mar 28, 2016 9:44 am

Re: Compiler does not finds definition of HRDL functions

Postby Hitesh » Wed Mar 30, 2016 11:57 am

Hi Philemon,

Which compiler (and IDE) are you using?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Compiler does not finds definition of HRDL functions

Postby Philemon » Tue Apr 26, 2016 1:35 pm

I'm using Eclipse 4.5.2
Philemon
Newbie
 
Posts: 0
Joined: Mon Mar 28, 2016 9:44 am

Re: Compiler does not finds definition of HRDL functions

Postby Philemon » Tue Apr 26, 2016 1:39 pm

Also, i am using MinGW. the error that coming up now it that: undefined reference to '_imp_HRDLRun' for example.
Philemon
Newbie
 
Posts: 0
Joined: Mon Mar 28, 2016 9:44 am

Re: Compiler does not finds definition of HRDL functions

Postby Hitesh » Tue Apr 26, 2016 2:56 pm

Hi Philemon,

Are you using a 32-bit or 64-bit version of the MinGW compiler?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Compiler does not finds definition of HRDL functions

Postby Philemon » Tue Apr 26, 2016 8:32 pm

Sorry but im not sure. i downloaded from here: https://sourceforge.net/projects/mingw/files/
Philemon
Newbie
 
Posts: 0
Joined: Mon Mar 28, 2016 9:44 am

Re: Compiler does not finds definition of HRDL functions

Postby Philemon » Thu Apr 28, 2016 10:42 am

Hello again,
i solved it! :)
i copy-pasted the libraries in the project file and i add a library path to that file and it worked!
thanks for the interest! :)
phil
Philemon
Newbie
 
Posts: 0
Joined: Mon Mar 28, 2016 9:44 am

Re: Compiler does not finds definition of HRDL functions

Postby Hitesh » Thu Apr 28, 2016 2:15 pm

Hi Phil,

Thanks for the update - good to hear it is working now! :D

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests