<stdint.h> missing after upgrade to PD5.4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

My program fails to compile after I upgraded from 5.3 to 5.4.

   

The error is:

   

!E C:\...\main.h(15): cannot include source file "stdint.h"; file not found

   

The line 15 is:

   

#include<stdint.h>

   

 

   

Of course, if I comment out that line, I get errors all over the place regarding the use of int16_t etc.

   

For now, I'll just copy the stdint.h file to the project directory, but can someone give a cleaner solution?

   

Thanks,

   

Paul

6 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I found a reference here that states Imagecraft does not generate a stdint.h file.

   

 

   

http://www.state-machine.com/psoc/QDKn_PSoC-ICCM8C.pdf

   

 

   

I then looked in a 5.4 compile, and found the typedefs in m8c.h

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks for the reply, but my m8c.h does not contain the typedefs I need.

   

C:\Program Files\Cypress\PSoC Designer\5.4\Common\CypressSemiBuildMgr\tools\include\CY8C27000\m8c.h

   

It has types such as WORD and INT.  I prefer uint16_t and int16_t style.

   

 

   

Note the previous 5.3 version has the stdint.h located here:

   

C:\Program Files\Cypress\PSoC Designer\5.3\Common\CypressSemiBuildMgr\tools\include\stdint.h

   

 

   

BTW, how can I "subscribe" to this thread (so I get an email when there is a reply)?

   

Thanks,

   

Paul

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Maybe someone else can comment, but I cannot find any capability

   

in user profile to do that, forum software does not support that. I could

   

be wrong, hope I am.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Hi pabbott   
Just simply, copy stdint.h to   
[...\Designer\5.4\Common\CypressSemiBuildMgr\tools\include\ ]   
rather than your project directry.   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Putting stdint.h in other than your project directory, does that leave you

   

susceptable to a Designer upgrade removing it ? Not sure, maybe someone

   

else can comment on this.

   

 

   

Regards, dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked
        The suggested path WILL change after an upgrade to 3.1 or later. I would suggest to put your own #includes into your own folder and add it to the search-tree for include-files.   
   
Bob   
0 Likes