PDA

View Full Version : warning: cannot find entry symbol nable-stdcall-fixup;



TheIndependentAquarius
5th November 2012, 08:12
This mingw contains gcc 4.6.3, with name - i686-w64-mingw32.

Qt SDK 2010

On Windows, a Qt's.pro file w.r.t a hello world program:


QT += core gui
TEMPLATE = app
TARGET = ef

SOURCES = ef.cpp
DEPENDPATH += .

INCLUDEPATH += .
INCLUDEPATH += c:/R-2.15.1/include
INCLUDEPATH += c:/R-2.15.1/library/Rcpp/include
INCLUDEPATH += c:/R-2.15.1/library/RInside/include

LIBS += -L c:/R-2.15.1/bin/i386 -lR
LIBS += -L c:/R-2.15.1/library/Rcpp/libs/i386 -lRcpp
LIBS += -L c:/R-2.15.1/library/RInside/libs/i386 -lRInside

What needs to be added in the pro file to solve this?

ChrisW67
5th November 2012, 08:30
You need to repair the broken linker option that is being created. The correct option is --enable-stdcall-fixup and your command line option has only a single hyphen. I don't know where that will be coming from: are you fiddling with any of the LFLAGS variables?

TheIndependentAquarius
5th November 2012, 10:10
Thanks for responding.

The makefile that is getting generated "automatically" from that pro file is as follows:

The pro file contains only the code that I have shown, nothing more.

What else should I provide here?


################################################## ###########################
# Makefile for building: ef
# Generated by qmake (2.01a) (Qt 4.6.1) on: Mon Nov 5 00:47:57 2012
# Project: temp.pro
# Template: app
# Command: c:\Qt\2010.01\qt\bin\qmake.exe -win32 -o Makefile temp.pro
################################################## ###########################

first: debug
install: debug-install
uninstall: debug-uninstall
MAKEFILE = Makefile
QMAKE = c:\Qt\2010.01\qt\bin\qmake.exe
DEL_FILE = del
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
COPY = copy /y
COPY_FILE = $(COPY)
COPY_DIR = xcopy /s /q /y /i
INSTALL_FILE = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = del
SYMLINK =
DEL_DIR = rmdir
MOVE = move
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
SUBTARGETS = \
debug \
release

debug: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_default: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_first: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug first
debug-all: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug all
debug-clean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug clean
debug-distclean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug distclean
debug-install: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug install
debug-uninstall: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug uninstall
release: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_default: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_first: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release first
release-all: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release all
release-clean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release clean
release-distclean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release distclean
release-install: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release install
release-uninstall: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release uninstall

Makefile: temp.pro ../Qt/2010.01/qt/mkspecs/win32-g++/qmake.conf ../Qt/2010.01/qt/mkspecs/qconfig.pri \
../Qt/2010.01/qt/mkspecs/features/qt_functions.prf \
../Qt/2010.01/qt/mkspecs/features/qt_config.prf \
../Qt/2010.01/qt/mkspecs/features/exclusive_builds.prf \
../Qt/2010.01/qt/mkspecs/features/default_pre.prf \
../Qt/2010.01/qt/mkspecs/features/win32/default_pre.prf \
../Qt/2010.01/qt/mkspecs/features/debug.prf \
../Qt/2010.01/qt/mkspecs/features/debug_and_release.prf \
../Qt/2010.01/qt/mkspecs/features/default_post.prf \
../Qt/2010.01/qt/mkspecs/features/win32/default_post.prf \
../Qt/2010.01/qt/mkspecs/features/win32/rtti.prf \
../Qt/2010.01/qt/mkspecs/features/win32/exceptions.prf \
../Qt/2010.01/qt/mkspecs/features/win32/stl.prf \
../Qt/2010.01/qt/mkspecs/features/shared.prf \
../Qt/2010.01/qt/mkspecs/features/warn_on.prf \
../Qt/2010.01/qt/mkspecs/features/qt.prf \
../Qt/2010.01/qt/mkspecs/features/win32/thread.prf \
../Qt/2010.01/qt/mkspecs/features/moc.prf \
../Qt/2010.01/qt/mkspecs/features/win32/windows.prf \
../Qt/2010.01/qt/mkspecs/features/resources.prf \
../Qt/2010.01/qt/mkspecs/features/uic.prf \
../Qt/2010.01/qt/mkspecs/features/yacc.prf \
../Qt/2010.01/qt/mkspecs/features/lex.prf \
../Qt/2010.01/qt/mkspecs/features/include_source_dir.prf \
c:/Qt/2010.01/qt/lib/qtmaind.prl
$(QMAKE) -win32 -o Makefile temp.pro
..\Qt\2010.01\qt\mkspecs\qconfig.pri:
..\Qt\2010.01\qt\mkspecs\features\qt_functions.prf :
..\Qt\2010.01\qt\mkspecs\features\qt_config.prf:
..\Qt\2010.01\qt\mkspecs\features\exclusive_builds .prf:
..\Qt\2010.01\qt\mkspecs\features\default_pre.prf:
..\Qt\2010.01\qt\mkspecs\features\win32\default_pr e.prf:
..\Qt\2010.01\qt\mkspecs\features\debug.prf:
..\Qt\2010.01\qt\mkspecs\features\debug_and_releas e.prf:
..\Qt\2010.01\qt\mkspecs\features\default_post.prf :
..\Qt\2010.01\qt\mkspecs\features\win32\default_po st.prf:
..\Qt\2010.01\qt\mkspecs\features\win32\rtti.prf:
..\Qt\2010.01\qt\mkspecs\features\win32\exceptions .prf:
..\Qt\2010.01\qt\mkspecs\features\win32\stl.prf:
..\Qt\2010.01\qt\mkspecs\features\shared.prf:
..\Qt\2010.01\qt\mkspecs\features\warn_on.prf:
..\Qt\2010.01\qt\mkspecs\features\qt.prf:
..\Qt\2010.01\qt\mkspecs\features\win32\thread.prf :
..\Qt\2010.01\qt\mkspecs\features\moc.prf:
..\Qt\2010.01\qt\mkspecs\features\win32\windows.pr f:
..\Qt\2010.01\qt\mkspecs\features\resources.prf:
..\Qt\2010.01\qt\mkspecs\features\uic.prf:
..\Qt\2010.01\qt\mkspecs\features\yacc.prf:
..\Qt\2010.01\qt\mkspecs\features\lex.prf:
..\Qt\2010.01\qt\mkspecs\features\include_source_d ir.prf:
c:\Qt\2010.01\qt\lib\qtmaind.prl:
qmake: qmake_all FORCE
@$(QMAKE) -win32 -o Makefile temp.pro

qmake_all: FORCE

make_default: debug-make_default release-make_default FORCE
make_first: debug-make_first release-make_first FORCE
all: debug-all release-all FORCE
clean: debug-clean release-clean FORCE
distclean: debug-distclean release-distclean FORCE
-$(DEL_FILE) Makefile

debug-mocclean: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocclean
release-mocclean: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocclean
mocclean: debug-mocclean release-mocclean

debug-mocables: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocables
release-mocables: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocables
mocables: debug-mocables release-mocables
FORCE:

$(MAKEFILE).Debug: Makefile
$(MAKEFILE).Release: Makefile



Added after 1 13 minutes:

I had installed this mingw by downloading it from here: http://code.google.com/p/mingw-builds/ and copying all its files in the mingw folder inside Qt.