kenzo0619 wrote: ↑
Fri Feb 02, 2018 12:20 am
I just launched my project on Raspberry Pi.
As it is very slow when I programming on, is there any IDE that I can try to compile first on windows ?
BTW, i need to use multiple threads
use Geany, it's already pre-installed by Jessie or Stretch (Desktop menu, tools)
compile: gcc -Wall -c "%f"
build: gcc -Wall -o "%e" "%f"
execute: "sudo ./%e"
adjust build preferences in Geany:
build: gcc -Wall -pthread -o "%e" "%f"
now you can
compile: by F8,
build: by F9 and
execute: by F5
if you want C++ instead of ANSI C:
exchange gcc by g++ in the Geany preferences, rest stays as it was.
some functions need root rights for execution, e.g. hardware pwm and perhaps i2c or some more - I often had troubles without it, and eventually sudo wouldn't matter. But one may try execute also without sudo of course.
I first was missing the Windows option, but Geany is also available for Windows, too.