View Single Post
Re: cygwin gcc -O2 problem
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: cygwin gcc -O2 problem - 17-11-2005

PHP Code:
k25@xg25 /cygdrive/c
g++ -O2 --o 1.o 1.cpp

k25
@xg25 /cygdrive/c
g++ -fPIC -shared -o 1.dll 1.o 
well I just can't resemble your problem here... the above thing runs well and no error. Here's my 1.cpp:
PHP Code:
#include <iostream>
using namespace std;

__declspec(dllexportint test1()
{
  
cout << "test1" << endl;

  
Reply With Quote