Ld Returned 1 Exit Status Error In Dev C++

Posted on  by
  1. Ld Returned 1 Exit Status Error In Dev C 2017
ExitLd Returned 1 Exit Status Error In Dev C++

Hi, Quite happy to say I'm complete noob at this despite having had a very successful 20 career in software development focusing on C, C and and Most recently and enjoyably C#. ' 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.

cannot open output file learndx.exe. This is the file you are compiling. This usually happens if the previous build is still running. Close any previous instance first.

I really like the app. How to cook everything app. Today I uninstalled and reinstalled the app. It's back to normal now.

P: n/a
Hi,
I am building a application on linux. I am getting an error which
relates to undefined reference to a function. I had build same on
other platform, no error comes.
Here is whole error message ..
make: Warning: File `linux_i32' has modification time 9.5e+02 s in the
future
gcc -Dlinux_i32 -fPIC -I/usr/local/actel/actel-dinkum/include -
D_ALT_NS=1 -t -mt -o
linux_i32/globchat /home/ruchira/windu5/lib.linux_i32/wincrt0.o /home/
ruchira/windu5/
lib.linux_i32/wu.o linux_i32/about.o linux_i32/dispatch.o linux_i32/
globchat.o linux_i
32/init.o linux_i32/misc.o linux_i32/winmain.o linux_i32/def.o -L/home/
ruchira/windu5/
lib.linux_i32 -lwinsock50 -L/home/ruchira/windu5/lib.linux_i32 -lgdi50
-luser50 -lkern
el50 -lprnt50 -L/usr/X11R6/lib -lXm -L/usr/X11R6/lib -lXt -lm -ldl -
lnsl -lpthread
linux_i32/globchat.o(.text+0x1ea): In function `MsgCreate':
: undefined reference to `EnumProtocolsA'
linux_i32/globchat.o(.text+0x248): In function `MsgCreate':
: undefined reference to `EnumProtocolsA'
/usr/bin/ld: link errors found, deleting executable `linux_i32/
globchat'
/usr/bin/ld: mode elf_i386
/usr/lib/gcc/i386-redhat-linux/3.4.3/./././crt1.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/./././crti.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtbegin.o
/home/ruchira/windu5/lib.linux_i32/wincrt0.o
/home/ruchira/windu5/lib.linux_i32/wu.o
linux_i32/about.o
linux_i32/dispatch.o
linux_i32/globchat.o
linux_i32/init.o
linux_i32/misc.o
linux_i32/winmain.o
linux_i32/def.o
-lwinsock50 (/home/ruchira/windu5/lib.linux_i32/libwinsock50.so)
-lgdi50 (/home/ruchira/windu5/lib.linux_i32/libgdi50.so)
-luser50 (/home/ruchira/windu5/lib.linux_i32/libuser50.so)
-lkernel50 (/home/ruchira/windu5/lib.linux_i32/libkernel50.so)
-lprnt50 (/home/ruchira/windu5/lib.linux_i32/libprnt50.so)
-lXm (/usr/X11R6/lib/libXm.so)
-lXt (/usr/X11R6/lib/libXt.so)
-lm (/usr/lib/gcc/i386-redhat-linux/3.4.3/./././libm.so)
-ldl (/usr/lib/gcc/i386-redhat-linux/3.4.3/./././libdl.so)
-lnsl (/usr/lib/gcc/i386-redhat-linux/3.4.3/./././libnsl.so)
/lib/libpthread.so.0
-lgcc_s (/usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_s.so)
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
-lgcc_s (/usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_s.so)
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtend.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/./././crtn.o
collect2: ld returned 1 exit status
make: *** [linux_i32/globchat] Error 1
Can anybody say why it comes and what the solutions?
Thanks,
Navneet
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>

Ld Returned 1 Exit Status Error In Dev C 2017

  1. I bet for sure, that this is because you didn't close the running instance of the program before trying to re-compile it. Generally, ld.exe returns 1 when it can't access required files.
  2. Sep 23, 2019  I'm also able to confirm this. I had added my output to (apparently) the wrong issue on GH, but I can confirm ESPAsyncTCP is breaking compilation when webserver or mqtt is included. Version locking the lib in platformio.ini was also not fixing the issue. My output observed both 1.2.0 and 1.2.1 versions being included for compilation with that file change, which leads me to believe some.