I am attempting to compile via cygwin's g++. First, i put cygwin's bin directory in Windows's Path variable.
1 2 3 4 5 6 7 8 9 10 11 12 13
C:\Users\micah_000>vim test.cpp
C:\Users\micah_000>cat test.cpp
#include <iostream>
int main(int argc, char **argv){
std::cout << "running " << argv[0] << std::endl;
}
C:\Users\micah_000>g++ -std=c++11 test.cpp -o test && "test"
running test
C:\Users\micah_000>
AFter that it appears to work fine in the command prompt.
which this would be fine actually by itself using vim. I was trying to do the same via Geany and give the same command.
geany's execute command string is: C:\cygwin64\bin\g++ -std=c++11 -Wall -o "%e""%f" && "%e"
after this failed, i tried: C:\cygwin64\bin\g++ -std=c++11 -Wall -o "%e""%f" -L C:\cygwin64/bin -I C:\cygwin64/bin && "%e"
The error i get when executing in geany however is: /usr/libexec/gcc/x86x64-pc-cygwin/4.8.2/cc1plus.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
I am not sure as to why it would work in the command prompt and not via geany execute string?