Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

  • From: "fruler" < >
  • To:
  • Subject: Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'
  • Date: Wed, 14 Nov 2012 16:26:06 -0500

Hi all

Windows 7 x64, NB 7.2.1, Qt 4.7.3 x64, MinGW
I try to build autogenerated empty Qt application and get an error

Code:

g++.exe: error: unrecognized command line option '-Wl'



It is strange for me that NB generates command line

Code:

g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o...



because as I've googled, g++ really has no options -Wl - this is the gcc's 
flag. Even when I set gcc as C++ compiler - the same

Code:

g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o...



appears

What is a trick? Who launches g++ even when I say to build with gcc? In 
qt-Debug.mk and other generated files CXX=gcc.exe [Question]  [Question]  
[Question]




Attachments: 
http://forums.netbeans.org//files/versions_112.png
http://forums.netbeans.org//files/gcc_116.png



Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

fruler 11/14/2012

Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

soldatov 11/15/2012

Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

soldatov 11/15/2012

Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

fruler 11/15/2012

Sample Qt app + MinGW: g++.exe: error: unrecognized command line option '-Wl'

soldatov 11/15/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close