Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

identifier not found error with flex_intialize_controller

I am currently trying to figure out why Visual c++ is not recognizing flex_initialize_controller() function.
I already added the header file: flexmotn.h in my header file.

this is how I declare the function:
status = flex_intialize_controller((u8)brdid, NULL);

and I am getting the following compiling error with VC++:
error C3861: 'flex_intialize_controller': identifier not found, even with argument-dependent lookup

Any help would be greatly appreciated thanks!
0 Kudos
Message 1 of 4
(3,632 Views)
Hey chowchow2469,

I saw that you are working with MarcoPolo5 on a similar issue in the following thread How to Declare all the motion functions in visual c++? If this is the same issue, I would recommend that you try what he suggests, as it seems he is pointing you in the right direction. If this is a different issue, then please let me know, and we will further look into what is causing your errors.

Regards,
DJ
0 Kudos
Message 2 of 4
(3,618 Views)
Hi DJ,

I have receieved Marc's most updated reply and I already included the library functio flexMS32.lib.

All the library and include files seems to be used correctly because the compiler does not complain about the other flex functions I am using such as flex_enable_axis,etc.
It only complains when I use flex_intialize_controller. I looked into the flexmotn.h file and it doesn include the function in that header file. The compiler still does not like the function flex_intialize_controller. I hope you can help me resolve this issue. Meantime I will write another simpler test code and show you the error. Thank you very much!

-Mike
0 Kudos
Message 3 of 4
(3,611 Views)
Hey Mike,

In the other Discussion Forum Post stated above, the last entry by Marc that says the following should solve your issue:
<"I also had to add the FlexMS32.lib file as a resorce file and the flexmotn.h file as an include file to my project as well as set the include directory path for flexmotn.h in the "additional include directories" under the options menu.">

Regards,
DJ
0 Kudos
Message 4 of 4
(3,594 Views)