Windows 7 コンピューターに Eclipse CDT (juno) がインストールされています。cygwin がインストールされています (メイクファイルを手動で作成し、.so を作成できます)。
eclipse で cygwin コンパイラを使用して .so を作成したい
eclipse で新しい共有ライブラリ プロジェクトを作成し、cygwin C++ コンパイラを使用するように指示しました
ctrl-b を実行すると、.dll が作成されます
.so を作成するにはどうすればよいですか?
これはWindows 7を使用しています
11:13:05 **** Build of configuration Debug for project cygwinc++ ****
make all
Building file: ../main.cpp
Invoking: Cygwin C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
cygwin warning:
MS-DOS style path detected: C:\Users\EAIGREG\workspace\cygwinc++\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/EAIGREG/workspace/cygwinc++/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building: ../main.cpp
Building target: cygwinc++.dll
Invoking: Cygwin C++ Linker
g++ -shared -o "cygwinc++.dll" ./main.o
cygwin warning:
MS-DOS style path detected: C:\Users\EAIGREG\workspace\cygwinc++\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/EAIGREG/workspace/cygwinc++/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building target: cygwinc++.dll
11:13:06 Build Finished (took 390ms)
明らかにこれは間違ったコンパイラを使用しています...私のcygwinはSOを作成できることを知っているので、「Linux」C++コンパイラを使用するように指示するにはどうすればよいですか?