News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

cannot find -lcodeblocks, need your help please

Started by aindrajaya, September 26, 2016, 09:05:43 AM

Previous topic - Next topic

aindrajaya

-------------- Build: default in Materi C++ Percabangan (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -shared   -Wl,--dll -LC:\wxWidgets2.8\lib\\gcc_dll .objs\Materi.o .objs\Materi_C__.o  -o Materi_C__.dll -mthreads  -lwxmsw28u -lcodeblocks
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lcodeblocks
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

anyone can solve my problem ?  :'(

rlb

The real question seems to be, why are you linking against libcodeblocks in the first place? I can't find that file on my system, either. It's not linked against by default, either, at least not for the kind of programs I write. It might be needed for either a dll or a wxWidgets project, but in that case, it should be present - and it's not.
Find out where it's linked (it's probably in your project's build options) and ask yourself who put it there and why. And then try removing it - if the project compilers without it, problem solved.
Richard Bos

aindrajaya

hanks for the reply.

I'm sorry not mention what I build, first.
I build a codeblocks plugin, and I think the default link libraries should be linking to libcodeblocks.
just like that..

oBFusCATed

You have to add a search directory for the linker to point where the libcodeblocks is on your hard disk.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

aindrajaya