Compilation error (LPC1769)

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

Compilation error (LPC1769)

1,052 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by julitoss on Thu Apr 04 07:56:50 MST 2013
I'm a newbie. I'm trying to compile code for the LPC1769, I have changed from RedLib to NewLib and I have the following compilation error:[COLOR=red]unknown type name 'int32_t'            [/COLOR]
  [COLOR=red]Include paths:[/COLOR]
  C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\arm-none-eabi\include
  C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\lib\gcc\arm-none-eabi\4.6.2\include
  C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\lib\gcc\arm-none-eabi\4.6.2\include-fixed
  Thanks, I’m sorry for my English,
  Julito
0 Kudos
Reply
5 Replies

928 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rocketdawg on Mon Mar 28 09:03:27 MST 2016
Link is bad
what gives?
0 Kudos
Reply

928 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by John Sauer on Fri Mar 25 10:51:32 MST 2016
I'm attempting to build the Modbus-demo 243 from [http://ucxpresso.googlecode.com/svn/trunk/nano1768/:examples].

I get a compile time error:
d:\nxp\lpcxpresso\tools\arm-none-eabi\include\sys\reent.h:195:27: error: unknown type name '_READ_WRITE_BUFSIZE_TYPE'
   _READ_WRITE_RETURN_TYPE _EXFNPTR(_read, (struct _reent *, _PTR,


What gives?

0 Kudos
Reply

928 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Apr 04 10:03:29 MST 2013
So, unless you have defined "HAVE_STDINT_H" to the compiler, you will not include stdint.h. Why not just include it and not guard it with a #if define
0 Kudos
Reply

928 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by julitoss on Thu Apr 04 09:20:19 MST 2013
(Thanks whitecoe!) I'm a newbie. I'm trying to compile code for the LPC1769, I have changed from RedLib to NewLib and I have the following compilation error:[COLOR=red]unknown type name 'int32_t' [/COLOR]
[COLOR=red]Include paths:[/COLOR]
C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\arm-none-eabi\include
C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\lib\ gcc\arm-none-eabi\4.6.2\include
C:\nxp\LPCXpresso_5.1.2_2065\lpcxpresso\tools\lib\ gcc\arm-none-eabi\4.6.2\include-fixed
  In defined symbols:
  __NEWLIB__
  DEBUG
  __CODERED__

  In my code:( highlighted in grey when compiling)
  [B][COLOR=#7F0055][FONT=&quot]#  if[/FONT][/COLOR][/B][COLOR=black][FONT=&quot] defined(HAVE_STDINT_H)[/FONT][/COLOR][FONT=&quot][/FONT]
  [B][COLOR=#7F0055][FONT=&quot]#   include[/FONT][/COLOR][/B][COLOR=black][FONT=&quot] [/FONT][/COLOR][COLOR=#2A00FF][FONT=&quot]<stdint.h>[/FONT][/COLOR][COLOR=#2A00FF][FONT=&quot][/FONT][/COLOR]
  [COLOR=#2A00FF][FONT=&quot]…[/FONT][/COLOR]
  
  Thanks, I’m sorry for my English,
Julito
0 Kudos
Reply

928 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Thu Apr 04 08:57:30 MST 2013
Doubt this is anything to do with Redlib vs Newlib. You simply need to pull in the header that defines the type...

#include <stdint.h>


HTH!
0 Kudos
Reply