Mar 29, 2011 ' ld returned 1 exit status 'Go into your settings and put the warning level on maximum. The compiler should be giving you line numbers, function names, etc in your warnings. Unless it has been deleted, you'll find a 'step-by-step' at the board for 'Dev-C'. Sep 18, 2016 Sorry for the bad quality. For any queries ask in the comments sections.
- Dev C++ Permission Denied Ld Returned 1 Exit Status Check
- Dev C++ Permission Denied Ld Returned 1 Exit Status Form
- Dev C++ Permission Denied Ld Returned 1 Exit Status Meaning
Hi everyone. I have a problem about C programming. I am beginner so I will be very happy if you help me with simple and easy understandable methods.
C:C alıştırma>gc *.o -lm
'gc' is not recognized as an internal or external command,
operable program or batch file.
C:C alıştırma>gcc *.o -lm
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/lib/libmingw32.a(main.
o): In function `main':
e:pgiawsrcpkgmingwrt-4.0.3-1-mingw32-srcbld/../mingwrt-4.0.3-1-mingw32-src
/src/libcrt/crt/main.c:91: undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
C:C alıştırma>
I have installed Qt 5.1.1 on my windows 8 machine. I am compiling with mingw and want in link to gsl.
I set my paths to: C:Program Files (x86)GSL-1.13;C:QtToolsmingw48_32bin
I set my paths to: C:Program Files (x86)GSL-1.13;C:QtToolsmingw48_32bin
My pro file is QT += core
TARGET = gsl_test
CONFIG += console
CONFIG -= app_bundle
CONFIG +=qt
CONFIG += console
CONFIG -= app_bundle
CONFIG +=qt
TEMPLATE = app
SOURCES += main.cpp
INCLUDEPATH += C://ProgramFiles(x86)//GSL-1.13//include
LIBS +=-LC://ProgramFiles(x86)//GSL-1.13//lib -lgsl -lgslcblas -lm
LIBS +=-LC://ProgramFiles(x86)//GSL-1.13//lib -lgsl -lgslcblas -lm
main.cpp
#include <iostream>
#include <iomanip>
#include <fstream>
#include <math.h>
using namespace std;
#include <iomanip>
#include <fstream>
#include <math.h>
using namespace std;
#include <gsl/gsl_sf_bessel.h> // gsl Bessel special function header file
int
main (void)
{
double x = 5.0; // just a random test value
main (void)
{
double x = 5.0; // just a random test value
double y = gsl_sf_bessel_J0 (x); // see the GSL manual for details
cout << 'J0(' << x << ') = '
<< setprecision(18) << setw(20) << y << endl;
<< setprecision(18) << setw(20) << y << endl;
return 0;
}
}
Dev C++ Permission Denied Ld Returned 1 Exit Status Check
The errors that I get are,
Dev C++ Permission Denied Ld Returned 1 Exit Status Form
C:QtToolsQtCreatorbinuntitledmain.cpp:-1: error: undefined reference to `gsl_sf_bessel_J0'
collect2.exe:-1: error: error: ld returned 1 exit status
The compile output is,
18:07:33: Running steps for project untitled...
18:07:33: Configuration unchanged, skipping qmake step.
18:07:33: Starting: 'C:QtToolsmingw48_32binmingw32-make.exe'
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Qt/Tools/QtCreator/bin/build-untitled-Desktop_Qt_5_1_1_MinGW_32bit-Release'
g++ -Wl,-s -Wl,-subsystem,console -mthreads -o releasegsl_test.exe release/main.o -lglu32 -lopengl32 -lgdi32 -luser32 -LC://ProgramFiles(x86)//GSL-1.13//lib -lgsl -lgslcblas -lm -LC:Qt5.1.1mingw48_32lib -lQt5Gui -lQt5Core
release/main.o:main.cpp:(.text.startup+0x23): undefined reference to `gsl_sf_bessel_J0'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:77: recipe for target 'releasegsl_test.exe' failed
mingw32-make[1]: *** [releasegsl_test.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Qt/Tools/QtCreator/bin/build-untitled-Desktop_Qt_5_1_1_MinGW_32bit-Release'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
18:07:34: The process 'C:QtToolsmingw48_32binmingw32-make.exe' exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.1.1 MinGW 32bit)
When executing step 'Make'
18:07:33: Running steps for project untitled...
18:07:33: Configuration unchanged, skipping qmake step.
18:07:33: Starting: 'C:QtToolsmingw48_32binmingw32-make.exe'
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Qt/Tools/QtCreator/bin/build-untitled-Desktop_Qt_5_1_1_MinGW_32bit-Release'
g++ -Wl,-s -Wl,-subsystem,console -mthreads -o releasegsl_test.exe release/main.o -lglu32 -lopengl32 -lgdi32 -luser32 -LC://ProgramFiles(x86)//GSL-1.13//lib -lgsl -lgslcblas -lm -LC:Qt5.1.1mingw48_32lib -lQt5Gui -lQt5Core
release/main.o:main.cpp:(.text.startup+0x23): undefined reference to `gsl_sf_bessel_J0'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:77: recipe for target 'releasegsl_test.exe' failed
mingw32-make[1]: *** [releasegsl_test.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Qt/Tools/QtCreator/bin/build-untitled-Desktop_Qt_5_1_1_MinGW_32bit-Release'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
18:07:34: The process 'C:QtToolsmingw48_32binmingw32-make.exe' exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.1.1 MinGW 32bit)
When executing step 'Make'
When I compiled this program using the command prompt with just MinGW I had an issue with permissions denied and would not create the .exe file unless I ran the command prompt as administrator. I ran qt creator as administrator but still got the same errors.
Dev C++ Permission Denied Ld Returned 1 Exit Status Meaning
Anyone have any ideas on what it causing these errors?