User forums > Using Code::Blocks

integrate libraries for Fortran

<< < (2/3) > >>

jerg:
the build log
mingw32-gfortran.exe   -IC:\Users\Administrator\Desktop\provefortran\lib2001  -c C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.f -o C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o
mingw32-gfortran.exe -LC:\Users\Administrator\Desktop\provefortran\lib2001  -o C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.exe C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o   C:\Users\Administrator\Desktop\provefortran\xcd\lib\graflib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\grafX11.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\gX11md.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\ix_higz.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\kernlib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\mathlib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\packlib.lib
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x11): undefined reference to `hlimit_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5df): undefined reference to `hplint_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5ea): undefined reference to `hplcap_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x669): undefined reference to `hplend_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x991): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x9af): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x25d6): undefined reference to `hbook1_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x26b3): undefined reference to `hbook2_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x270b): undefined reference to `hplzon_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2774): undefined reference to `hfill_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x27a3): undefined reference to `hmaxim_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x27cf): undefined reference to `hminim_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x27fe): undefined reference to `hplopt_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x282d): undefined reference to `hplopt_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2863): undefined reference to `hplot_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2972): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x29cd): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2ce3): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2d89): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x2dc9): undefined reference to `hpltit_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3307): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3370): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3a05): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3a61): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3acf): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3c0a): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3c66): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3cd4): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3e0f): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3e6b): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x3ed9): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4014): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4070): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x40de): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x420f): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x426b): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x42d9): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4414): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4470): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x44de): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4619): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4675): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x46e3): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x481e): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x487a): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x48e8): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4a19): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4a75): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4ae3): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4c1e): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4c7a): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4ce8): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4e23): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4e7f): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x4eed): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5028): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5084): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x50f2): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5223): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x527f): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x52ed): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5428): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5484): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x54f2): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x562d): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5689): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x56f7): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5832): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x588e): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x58fc): undefined reference to `hplsym_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5aec): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5b36): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x5fdd): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x6020): undefined reference to `hplsof_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x6043): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x605e): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x6079): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x6094): undefined reference to `hplset_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x7321): undefined reference to `hpline_'
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f:(.text+0x737f): undefined reference to `hplsym_'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
80 errors, 0 warnings
 

oBFusCATed:
Why have you added .lib files to the linker?
For normal gcc/g++ they are not support only .a and .dll are supported.
Also have you modified your compiler commands, because your commands look rather strange?


p.s. please use code tags, they make post way more readable.

MortenMacFly:

--- Quote from: jerg on January 16, 2012, 07:10:51 pm ---mingw32-gfortran.exe -LC:\Users\Administrator\Desktop\provefortran\lib2001  -o C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.exe C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o   C:\Users\Administrator\Desktop\provefortran\xcd\lib\graflib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\grafX11.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\gX11md.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\ix_higz.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\kernlib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\mathlib.lib C:\Users\Administrator\Desktop\provefortran\xcd\lib\packlib.lib

--- End quote ---
From what I see here, you are mixing libraries of different platforms. For example: The library "grafX11" will certainly not work as it is for a Linux X11 system.

BTW: Linking against *.lib files might not be an issue. I do this regularly without issues. However, if you link against library files designed for a different platform or that have an incompatible architecture for GCC this won't work.

So: Ask the developer of the library you are using to provide you with an SDK that is for Windows and that is GCC compatible. Notice that this is not a C::B, but a compatibility / portability issue.

jerg:
ok, I'll tell you the story:

This project was born early in visual Fortran, the program creates graphs with these libraries, etc. .. I used these libraries under windows xp 32 so far, and also with CodeBlocks on Windows XP gives me the same problems. So from what I say is probably an incompatibility with the compiler and ask if I can rewrite the libraries to be compatible with gcc if I can give me the source that, as far as I have said, are written in OBJ and I saw it in minigw including this compiler. According to you the difference between these libraries and those compatible with the compiler may be just what compiler was compiled with these libraries, that is if they give me the source code and recompile I minigw the board using the compiler obj is feasible or is more complex it?

However, thanks very much for your help

MortenMacFly:
...you can also try to play with "-fno-underscoring" and "-fno-second-underscore". Maybe its as simple as that.

See here: http://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version