Problem with processor expert's generated code...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem with processor expert's generated code...

跳至解决方案
901 次查看
gabrielnavas
Contributor I

i'm working on my proyect with codewarrior 10.2 and when i want to make the proyect, there are 3 errors that say:

DescriptionResourcePathLocationType
C:/Freescale/CW MCU v10.2/MCU/lib/hc08c/include\ccstddef.h C1017 Empty declarationPractica 3 microsline 42, external location: C:\Freescale\CW MCU v10.2\MCU\lib\hc08c\include\ccstddef.hC/C++ Problem
C:/Freescale/CW MCU v10.2/MCU/lib/hc08c/include\ccstddef.h C2801 ';' missingPractica 3 microsline 42, external location: C:\Freescale\CW MCU v10.2\MCU\lib\hc08c\include\ccstddef.hC/C++ Problem
mingw32-make: *** [Sources/main_c.obj] Error 1Practica 3 microsC/C++ Problem

 

and when i click on any of those errors, the focus goes on ccstddef.h section:

 

 

 

#ifdef __GNUG__

#pragma interface "stddef.h"

#endif

 

 

#include <Gconfig.h>

#include <cstddef.h>

 

 

extern "C++"

{

 

 

#ifndef _LIBRARY_WORKAROUND  /* dont't DEFINE vars in header files !! */

const size_t NPOS = (size_t)(-1);

#endif

 

 

typedef void fvoid_t();

 

 

#ifndef _LIBRARY_WORKAROUND

#ifndef _WINT_T

#define _WINT_T

typedef _G_wint_t wint_t;

#endif

#endif

 

 

} // extern "C++"

 

 

#endif

 

 

--------------------------------------------------------------------

but i had never modify any of that part..

i wish you can help me please! thank!

 

标签 (1)
0 项奖励
1 解答
496 次查看
gabrielnavas
Contributor I

Thanks for helping me, it was my bad! haha, the problem was that I was including the "iostream.h" library in a C proyect, and iostream it's a C++ library! so thanks again and if anyone has the same dummy problem, here there is the solution!

在原帖中查看解决方案

0 项奖励
4 回复数
497 次查看
gabrielnavas
Contributor I

Thanks for helping me, it was my bad! haha, the problem was that I was including the "iostream.h" library in a C proyect, and iostream it's a C++ library! so thanks again and if anyone has the same dummy problem, here there is the solution!

0 项奖励
496 次查看
Monica
Senior Contributor III

Gabriel,

Thanks a lot for sharing! Dummy or not dummy problems we're to help each other :smileywink:

Best regards,

Monica.

0 项奖励
496 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

how can we reproduce your problem? can you please upload your demo project and also describe how to reproduce your problem from creating a new project?

0 项奖励
496 次查看
TICS_Fiona
NXP Employee
NXP Employee

Could you please try with latest CodeWarrior version v10.4? It can be downloaded from: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10

0 项奖励