- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just simply, copy stdint.h to
[...\Designer\5.4\Common\CypressSemiBuildMgr\tools\include\ ]
rather than your project directry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob