Hamlib for windows
Steve & Ginny Grudzinski <sgrudzinski1 <at> verizon.net>
2007-05-17 18:34:46 GMT
Greetings,
I am currently not a developer, but soon hope to be. I am for now an end
user trying to get hamlib working. I have had contact with Alex and he has
been helpful, but he says that he is not a windows person, so I put this out
to the windows developers.
I am trying to write a small utility program to talk with my FT-817. I am
using a windows XP environment with Borland Builder v5 C++ as my compiler.
It is not visual C++.
I tried linking the libmamlib-2.lib file just to find out that it was a
visual C++ file. I changed to libhamlib.dll.a. This compiled and linked with
no errors, however I did not try and make any calls.
When I add the rig.h include to my source file, I start receiving the
following errors. These are not all the errors, but a sample.
[C++ Error] stdio.h(362): E2238 Multiple declaration for 'std'
[C++ Error] stdio.h(362): E2141 Declaration syntax error using std::FILE;
using std::FILE;
[C++ Error] rig.h(1043): E2303 Type name expected
rig_model_t rig_model; /*!< Rig model. */
[C++ Error] rig.h(1043): E2139 Declaration missing ;
rig_model_t rig_model; /*!< Rig model. */
[C++ Error] rig.h(1428): E2141 Declaration syntax error
extern HAMLIB_EXPORT(RIG *) rig_init rig_model_t rig_model;
/*!< Rig model. */ HAMLIB_PARAMS((rig_model_t rig_model));
[C++ Error] rig.h(1429): E2337 Only one of a set of overloaded functions can
be "C"
extern HAMLIB_EXPORT(int) rig_open HAMLIB_PARAMS((RIG *rig));
>From the example it seems that I only need to include the rig.h file, link
the library, and make sure that the dll's are in the same directory. Then I
just write the code to access the functions. Sounds simple, but I can't seem
to get it working.
Can anyone help?
Thanks,
Steve
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/