User forums > Help

error unrecognized option '-plugin'

(1/2) > >>

37712:
Hi, I installed code blocks IDE and everything was running without a problem until yesterday. when ever I try to compile my c code I get an error message.

this is my build messages:

=== Build: Release in LinkedList (compiler: GNU GCC Compiler) ===
ld.exe    unrecognized option '-plugin'
             error: ld returned 1 exit status
=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===


this is my build log:

-------------- Clean: Release in LinkedListAssignment (compiler: GNU GCC Compiler)---------------

Cleaned "LinkedListAssignment - Release"

-------------- Build: Release in LinkedListAssignment (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall -std=c99 -O2 -std=c99  -c "C:\Users\37712\Google Drive\C Projects\CodeBlocks Projects\LinkedListAssignment\LinkedListAssignment.c" -o obj\Release\LinkedListAssignment.o
mingw32-g++.exe  -o bin\Release\LinkedListAssignment.exe obj\Release\LinkedListAssignment.o  -s 
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: unrecognized option '-plugin'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I am no sure but I think the problem started when I clicked on the CppCheck in the plugin which also gave me some kind of error message about failure to launch. please help I don't know what to do =(

I am using windows 7

stahta01:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Edit: The above link gets you close to the linker settings that need checked.

Remove the option that was added in error.

Likely in other linker settings might be called extra linker settings.

Tim S.

37712:
hello, I followed your link and did the instructions about "compile a project using some non-standard libraries" that you sent me but I don't have any instructions there to modify I simply have a blank page to add instructions not modify, I have pretty much a clean install of code blocks and I still haven't been able to fix the problem. global compiler setting>search directories is all empty.

oBFusCATed:
Can you post the full rebuild log?

37712:
not sure what u mean by rebuild log, I assume you mean to rebuild the code/project and post the build log so here it is:

-------------- Clean: Release in LinkedListAssignment (compiler: GNU GCC Compiler)---------------

Cleaned "LinkedListAssignment - Release"

-------------- Build: Release in LinkedListAssignment (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall -std=c99 -O2 -std=c99  -c "C:\Users\37712\Google Drive\C Projects\CodeBlocks Projects\LinkedListAssignment\LinkedListAssignment.c" -o obj\Release\LinkedListAssignment.o
mingw32-g++.exe  -o bin\Release\LinkedListAssignment.exe obj\Release\LinkedListAssignment.o  -s 
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: unrecognized option '-plugin'
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

Navigation

[0] Message Index

[#] Next page

Go to full version