Problem with processor expert's generated code...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with processor expert's generated code...

Jump to solution
834 Views
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!

 

Labels (1)
0 Kudos
1 Solution
429 Views
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!

View solution in original post

0 Kudos
4 Replies
430 Views
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 Kudos
429 Views
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 Kudos
429 Views
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 Kudos
429 Views
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 Kudos