dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
184 stars 80 forks source link

Make fails in windows, not finding winerror.h, stdint.h #100

Open mark0b opened 3 years ago

mark0b commented 3 years ago

Just getting started with mspdebug but I had to go into sockets.c and sport.c to add winerror.h and stdint.h includes respectively.

dlbeer commented 3 years ago

On Tue, Nov 10, 2020 at 09:15:29PM -0800, mark0b wrote:

Just getting started with mspdebug but I had to go into sockets.c and sport.c to add winerror.h and stdint.h includes respectively.

What toolchain are you building with? Is this MinGW?

-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

mark0b commented 3 years ago

On Tue, Nov 10, 2020 at 09:15:29PM -0800, mark0b wrote: Just getting started with mspdebug but I had to go into sockets.c and sport.c to add winerror.h and stdint.h includes respectively. What toolchain are you building with? Is this MinGW? -- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

Yep, using MinGW per the instructions in the FAQ.

I attempted to check out the windows.h file MinGW provides and sure enough it doesn't have an include statement for winerror. I attempted to add the line in that file but wasn't getting a different result.

dlbeer commented 3 years ago

On Wed, Nov 11, 2020 at 09:16:38AM -0800, mark0b wrote:

On Tue, Nov 10, 2020 at 09:15:29PM -0800, mark0b wrote: Just getting started with mspdebug but I had to go into sockets.c and sport.c to add winerror.h and stdint.h includes respectively. What toolchain are you building with? Is this MinGW? -- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

Yep, using MinGW per the instructions in the FAQ.

I attempted to check out the windows.h file MinGW provides and sure enough it doesn't have an include statement for winerror. I attempted to add the line in that file but wasn't getting a different result.

Ok. Are you able to paste here the output of "git diff HEAD" on your working build?

-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B

mark0b commented 3 years ago

It seems that I was using version 0.23 where if I build from 0.25, I don't experience the same issues. I was however experiencing an issue where make was defaulting to cc instead of gcc but that seems to be a local issue on my end. Thanks for being available to help though!