Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Help / Re: error unrecognized option '-plugin'
« Last post by 37712 on June 14, 2018, 05:17:32 am »
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.
32
Help / Re: error unrecognized option '-plugin'
« Last post by stahta01 on June 14, 2018, 04:32:43 am »
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.
33
Using Code::Blocks / Re: undefined reference to `_imp__* error
« Last post by stahta01 on June 14, 2018, 04:28:33 am »
I am attempting to compile these cminpack files as static libraries. So another possibility that has occurred to me is the linker is trying to link as if these were dll files. But in the code I do not see these functions prefixed with __declspec(dllimport) or __declspec(dllexport). Is there another way these files might be marked for linking as if they are dll?

Search for export or import and you will likely find out what to define to make a static build.

Tim S.
34
Using Code::Blocks / undefined reference to `_imp__* error
« Last post by spflanze on June 14, 2018, 03:31:00 am »
I am integrating the function lmder() from the cminpack package available from
http://devernay.free.fr/hacks/cminpack/
into my C++ wxWidgets based program.

The claim is made there that these files are both C and C++ compatible files, but in this package all I find are .c extensions, so I am integrating them all as C files. When I include the headers from this package I enclose them in the appropriate code indicating these are C headers, and do the same for a function that is to be passed to lmder():
Code: [Select]
extern "C" {
#include "cminpack.h"
#include "cminpackP.h"
int
//__cminpack_decl_fcnder_mn__
fcn( void *p, int m, int n, const double *x, double *fvec, double *fjac, int ldfjac, int iflag );
}
I get these errors I do not know what to do about:
Quote
obj\Debug\Libraries\cminpack-1.3.6\lmder.o||In function `lmder':|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|216|undefined reference to `_imp__dpmpar'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|245|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|300|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|381|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|396|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|418|undefined reference to `_imp__enorm'|
obj\Debug\Libraries\cminpack-1.3.6\lmder.o:C:\Engineering Software\Libraries\cminpack-1.3.6\lmder.c|466|more undefined references to `_imp__enorm' follow|
obj\Debug\Libraries\cminpack-1.3.6\lmpar.o||In function `lmpar':|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|131|undefined reference to `_imp__dpmpar'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|177|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|207|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|227|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|258|undefined reference to `qrsolv'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|262|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\lmpar.c|306|undefined reference to `_imp__enorm'|
obj\Debug\Libraries\cminpack-1.3.6\qrfac.o||In function `qrfac':|
C:\Engineering Software\Libraries\cminpack-1.3.6\qrfac.c|196|undefined reference to `_imp__dpmpar'|
C:\Engineering Software\Libraries\cminpack-1.3.6\qrfac.c|201|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\qrfac.c|240|undefined reference to `_imp__enorm'|
C:\Engineering Software\Libraries\cminpack-1.3.6\qrfac.c|272|undefined reference to `_imp__enorm'|
obj\Debug\TIA Designer\src\JunctionCap.o||In function `ZN11JunctionCap19CalculateParametersEv':|
C:\Engineering Software\TIA Designer\src\JunctionCap.cpp|249|undefined reference to `_imp__lmder'|
||error: ld returned 1 exit status|
||=== Build failed: 20 error(s), 50 warning(s) (0 minute(s), 24 second(s)) ===|
In these errors the prefix "_imp__" suggest the GCC compiler is compiling these files that are source of these files as C++ files, not C files, in spite of these file's .c extensions. Where in Code::Blocks will I find compiler flags that will do this?

I am attempting to compile these cminpack files as static libraries. So another possibility that has occurred to me is the linker is trying to link as if these were dll files. But in the code I do not see these functions prefixed with __declspec(dllimport) or __declspec(dllexport). Is there another way these files might be marked for linking as if they are dll?
35
Help / error unrecognized option '-plugin'
« Last post by 37712 on June 14, 2018, 02:38:00 am »
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
36
Well, it looks like he is abusing the compiler definition system to define default compiler settings to deploy them to multiple projects or installations.

This is the poor mans method if you don't use a meta-project generator like PreMake or CMake where you can achieve that by using setup-scripts you store in a central location and import them into the projects. Or if you use an IDE that doesn't have an integrated feature for that like e.g. Visual Studio with its Property Pages ;).

Could CB project scripts be used to set link libraries values?

Tim S.
37
Well, it looks like he is abusing the compiler definition system to define default compiler settings to deploy them to multiple projects or installations.

This is the poor mans method if you don't use a meta-project generator like PreMake or CMake where you can achieve that by using setup-scripts you store in a central location and import them into the projects. Or if you use an IDE that doesn't have an integrated feature for that like e.g. Visual Studio with its Property Pages ;).
38
Are you blind?

If no, please state a valid reason you do not wish to use the Code::Blocks GUI interface to set the libraries you wish to link?

Tim S.
39
I have created new compiler.xml file and corresponding option.xml file with include and lib path in it.

I want to link external libraries to the compiler using source code, where should I put that?

For Ex: If I want to create a compiler to compile to opengl program, then I have to link -lglfw3 -lgdi32 -lopengl32 libraries

This I want to achieve with the help of source code.

Please help..

Thanks in advance!!
40
Help / Re: can not open output file
« Last post by oBFusCATed on June 13, 2018, 05:36:30 pm »
Can you try to find a way to reproduce the problem reliably?
Pages: 1 2 3 [4] 5 6 7 8 9 10