dizgah
Member level 5
- Joined
- Nov 8, 2009
- Messages
- 91
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- iran-8par
- Activity points
- 2,049
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 ?
Mary christmas
Mahmoud
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 ?
Mary christmas
Mahmoud