Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Porting GMP from Cygwin (under Windows) to Windows

 

CygwintoWindows

 

After successfully installing GMP under Cygwin (under Windows), I tried to run the Hello GMP program.

 

With the Qt project file below, the error Undefined reference to '__getreent' occurs:

 

#-------------------------------------------------
#
# Project created by QtCreator 2010-10-01T08:45:31
#
#-------------------------------------------------
QT       += core
QT       -= gui
TARGET = CppHelloGmp
unix:LIBS+= -L/usr/lib -lgmp
win32:LIBS+= c:/cygwin/usr/local/lib/libgmp.lib
win32:LIBS += c:/Qt/2010.02.1/mingw/lib/
win32:INCLUDEPATH += c:/cygwin/usr/local/include
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict