I am trying to create an API Manager but the checkAPIEnv.cmd fails with an error message
** cannot determine 'cl' compiler version! Maybe no compiler or wrong compiler version installed. VC12 expected.
I am running VS2012 (VC11). Does this mean I have to upgrade to VS2013 (VC12) or can I make it work with VS2012?
Creating an API Manager
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Creating an API Manager
Hello,
when using WinCC OA 3.13 you have to install Visual C++ / Visual Studio 2013 (VC12) Compiler Version 18.00.30501 for x64.
Best Regards
Leopold Knipp
Senior Support Specialist
when using WinCC OA 3.13 you have to install Visual C++ / Visual Studio 2013 (VC12) Compiler Version 18.00.30501 for x64.
Best Regards
Leopold Knipp
Senior Support Specialist
- mhargreaves
- Posts:84
- Joined: Thu Nov 11, 2010 12:31 pm
Re: Creating an API Manager
I have now used VS 2013 but even though I have followed the instructions as best as I can, I still get an error
Error 1 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' C:\\Siemens\\Automation\\WinCC_OA\\3.13\\api\\Rcm\\libManager.lib(libManagerV313.dll) RcmManager
Error 1 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' C:\\Siemens\\Automation\\WinCC_OA\\3.13\\api\\Rcm\\libManager.lib(libManagerV313.dll) RcmManager
- mhargreaves
- Posts:84
- Joined: Thu Nov 11, 2010 12:31 pm
Re: Creating an API Manager
I realised what is wrong - was using the normal Command Prompt instead of the "x64 Cross Tools Command Prompt"
- mhargreaves
- Posts:84
- Joined: Thu Nov 11, 2010 12:31 pm
Re: Creating an API Manager
I have now managed to build my application ('demo') but when I try and debug it in Visual Studio 2013, it closes at the first demoResources::ini 'begin' function
begin(argc, argv);
while ( readSection() || generalSection() )
;
end(argc, argv);
Any suggestions on why it is failing?
I am putting arguments as '-num 6' - is this correct?
Where should I put the config file if running directly from Visual Studio?
begin(argc, argv);
while ( readSection() || generalSection() )
;
end(argc, argv);
Any suggestions on why it is failing?
I am putting arguments as '-num 6' - is this correct?
Where should I put the config file if running directly from Visual Studio?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Creating an API Manager
A little bit too little information here.
Try running with -log +stderr and don't forget to pass it -proj yourProjectName so that it finds the config file.
Try running with -log +stderr and don't forget to pass it -proj yourProjectName so that it finds the config file.
- mhargreaves
- Posts:84
- Joined: Thu Nov 11, 2010 12:31 pm
Re: Creating an API Manager
I have tried to install VS2013 on a Siemens 'CAT Client' machine but the installation always fails. Has anyone else from Siemens also experienced this?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Creating an API Manager
Hello,
our developers are using VS2013 on CAT clients.
The installation therefore should work.
Please get in contact with your system administration.
Best Regards
Leopold Knipp
Senior Support Specialist
our developers are using VS2013 on CAT clients.
The installation therefore should work.
Please get in contact with your system administration.
Best Regards
Leopold Knipp
Senior Support Specialist
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: Creating an API Manager
Make sure to start your api manager with (atleast)
"-num 6 -proj MYPROJECT"
Good luck
"-num 6 -proj MYPROJECT"
Good luck