Linux 在Windows7上使用cdt eclipse和cygwin创建.so共享对象

Linux 在Windows7上使用cdt eclipse和cygwin创建.so共享对象,linux,cygwin,shared-libraries,eclipse-cdt,Linux,Cygwin,Shared Libraries,Eclipse Cdt,我已经在我的Windows7计算机上安装了EclipseCDT(juno) 我已安装cygwin(能够手动创建makefile并创建.so) 我想在eclipse中使用cygwin编译器创建一个.so 我在Eclipse中创建了一个新的共享库项目,告诉它使用CygWin C++编译器< /P> 按ctrl-b键,它将创建一个.dll 我怎样才能让它成为一个好朋友呢 这是使用Windows7 11:13:05 **** Build of configuration Debug for projec

我已经在我的Windows7计算机上安装了EclipseCDT(juno) 我已安装cygwin(能够手动创建makefile并创建.so)

我想在eclipse中使用cygwin编译器创建一个.so

我在Eclipse中创建了一个新的共享库项目,告诉它使用CygWin C++编译器< /P> 按ctrl-b键,它将创建一个.dll

我怎样才能让它成为一个好朋友呢

这是使用Windows7

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可以创建这样的,那么我如何告诉它使用“Linux”C++编译器?

< P>也许有一种方法来完成我正在寻找的,但是我最终做的是让另一台计算机运行Linux…p>
如果我想,我可以手动创建我的makefile并手动链接和编译(可能是一些奇特的批处理文件),但最终在linux中本机拥有一个完整的eclipse环境会更容易,也许有一种方法可以实现我想要的,但我最后做的是让另一台计算机运行linux

如果我想的话,我可以手动创建我的makefile并手动链接和编译(可能是一些奇特的批处理文件),但最终在linux中拥有一个完整的eclipse环境会更容易