AnsweredAssumed Answered

error in adding cpp library to c project in keil

Question asked by mahmoud on Dec 27, 2014
Latest reply on Dec 30, 2014 by Jacobs.Carl.001
hi every one
im trying to develop a c project in keil ,know i need to add a cpp library file to project & it shows error,i think it is because project uses c compiler & it cant compile cpp libraries,but i dosent have any suggestion to what i must do !
keils error :
 error:  #20: identifier "class" is undefined
library consist of a lib_XX.h file (for example )  & lib_XX.cpp file 
& like any other libraries i include .h file in main.c (my main program file )
#include "lib_XX.h"
-----
libraries dosent have any problem & i used them in keil cpp project before.
is there any suggestion ?
best regards,Mary christmas
Mahmoud

Outcomes