Andy's Workshop Forums

General Category => stm32plus C++ library => Topic started by: tboy32 on August 30, 2015, 10:21:31 am

Title: library installation trouble
Post by: tboy32 on August 30, 2015, 10:21:31 am
I've been following the instructions on http://andybrown.me.uk/2015/03/22/stm32dev-windows/ (http://andybrown.me.uk/2015/03/22/stm32dev-windows/) but am having trouble at the point where using scons to build the library (step 6). I get a bunch of these types of errors:

error: expected unqualified-id before 'using'

It appears in a lot of places. Googling the error just leads to posts where people have made simple mistakes (like missing a semicolon) in their code. However I don't think that's the case as I'm using the original stm32plus source files. Could this be a line-ending issue? I don't have much experience with this type of thing, so it would be appreciated if anyone could provide a pointer in the right direction.
Title: Re: library installation trouble
Post by: Andy Brown on August 30, 2015, 11:45:37 am
Hi, can you let me know which compiler you are using? From the command line that gives you the errors, please type:


$ arm-none-eabi-g++ -v


You should get some output that includes the version information:


gcc version 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278] (GNU Tools for ARM Embedded Processors)

Title: Re: library installation trouble
Post by: tboy32 on August 30, 2015, 05:30:38 pm
Thanks Andy, that was exactly the pointer I needed! Turns out I had a long forgotten gcc installation in my PATH variable and cygwin was using that one instead. It was version 4.6.2. I simply removed the old location from my PATH and everything worked as it should. Thanks for the help and your amazing work!