Author Topic: integrate libraries for Fortran  (Read 9156 times)

Offline jerg

  • Single posting newcomer
  • *
  • Posts: 7
integrate libraries for Fortran
« on: January 16, 2012, 01:05:26 pm »
Hi, excuse my English, I'm using the google translator

I am working with Fortran and would like to switch to Microsoft's Visual Fortran CodeBlocks. In my project use of graphics library developed by ENEA, creating graphs. I put the libraries in CodeBlocks, I tried both in the project tab "Build Options" tab that "compilers & debuggers" but when I compile the program I always return this error.


Code: [Select]
ro 16 \ cos_ax_01.o | | In function `ptt01_ ': |
ro 16 \ cos_ax_01.f | 186 | undefined reference to `hlimit_ '|
ro 16 \ cos_ax_01.f | 208 | undefined reference to `hplint_ '|
ro 16 \ cos_ax_01.f | 209 | undefined reference to `hplcap_ '|
ro 16 \ cos_ax_01.f | 220 | undefined reference to `hplend_ '|
ro 16 \ cos_ax_01.o | | In function `pagg1_ ': |
ro 16 \ cos_ax_01.f | 373 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 374 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 478 | undefined reference to `hbook1_ '|
ro 16 \ cos_ax_01.f | 484 | undefined reference to `hbook2_ '|
ro 16 \ cos_ax_01.f | 489 | undefined reference to `hplzon_ '|
ro 16 \ cos_ax_01.f | 494 | undefined reference to `hfill_ '|
ro 16 \ cos_ax_01.f | 495 | undefined reference to `hmaxim_ '|
ro 16 \ cos_ax_01.f | 496 | undefined reference to `hminim_ '|
ro 16 \ cos_ax_01.f | 497 | undefined reference to `hplopt_ '|
ro 16 \ cos_ax_01.f | 498 | undefined reference to `hplopt_ '|
ro 16 \ cos_ax_01.f | 499 | undefined reference to `hplot_ '|
ro 16 \ cos_ax_01.f | 513 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 515 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 531 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 533 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 534 | undefined reference to `hpltit_ '|
ro 16 \ cos_ax_01.o | | In function `cost6_ ': |
ro 16 \ cos_ax_01.f | 300 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 302 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.o | | In function `pagg2_ ': |
ro 16 \ cos_ax_01.f | 714 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 719 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 721 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 743 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 748 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 750 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 772 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 777 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 779 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 801 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 806 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 808 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 830 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 835 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 837 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 859 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 864 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 866 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 888 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 893 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 895 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 917 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 922 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 924 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 945 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 950 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 952 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 974 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 979 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 981 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1003 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1008 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1010 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1032 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1037 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1039 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1060 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1065 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1067 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1089 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1094 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1096 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1118 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1123 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1125 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1147 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1152 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1154 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.o | | In function `axis_ ': |
ro 16 \ cos_ax_01.f | 333 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 338 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.o | | In function `time3_ ': |
ro 16 \ cos_ax_01.f | 255 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 256 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.o | | In function `set1_ ': |
ro 16 \ cos_ax_01.f | 266 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 267 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 268 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 269 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.o | | In function `hp1_ ': |
ro 16 \ cos_ax_01.f | 315 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.o | | In function `hp2_ ': |
ro 16 \ cos_ax_01.f | 323 | undefined reference to `hplsym_ '|
||=== Build finished: 80 errors, 0 warnings === |

libraries are. lib and when "they said" are written in OBJ

What's wrong??

many thanks to all

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: integrate libraries for Fortran
« Reply #1 on: January 16, 2012, 01:08:01 pm »
What's wrong??
Please post the full compiler log (see my signature how to enable).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jerg

  • Single posting newcomer
  • *
  • Posts: 7
Re: integrate libraries for Fortran
« Reply #2 on: January 16, 2012, 01:36:33 pm »
thanks for the help

I did what you asked, this is the build log


Code: [Select]
-------------- Build: Debug XCD ---------------

mingw32-gfortran.exe-LC: \ Users \ Administrator \ Desktop \ provefortran \ lib2001-LC: \ Users \ Administrator \ Desktop \ provefortran \ lib2001-LC: \ Users \ Administrator \ Desktop \ provefortran \ lib2001-o bin \ Debug \ xcd.exe "obj \ Debug \ Cesaro 16 \ cos_ax_01.o" C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ graflib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ grafX11.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ gX11md.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ ix_higz.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ kernlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ mathlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ packlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ graflib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ grafX11.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ gX11md.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ ix_higz.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ kernlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ mathlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ packlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ graflib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ grafX11.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ gX11md.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ ix_higz.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ kernlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ mathlib.lib C: \ Users \ Administrator \ Desktop \ provefortran \ lib2001 \ packlib. lib
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `ptt01_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 186: undefined reference to `hlimit_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 208: undefined reference to `hplint_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 209: undefined reference to `hplcap_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 220: undefined reference to `hplend_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `pagg1_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 373: undefined reference to `hplset_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 374: undefined reference to `hplset_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 478: undefined reference to `hbook1_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 484: undefined reference to `hbook2_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 489: undefined reference to `hplzon_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 494: undefined reference to `hfill_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 495: undefined reference to `hmaxim_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 496: undefined reference to `hminim_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 497: undefined reference to `hplopt_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 498: undefined reference to `hplopt_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 499: undefined reference to `hplot_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 513: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 515: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 531: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 533: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 534: undefined reference to `hpltit_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `cost6_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 300: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 302: undefined reference to `hplsof_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `pagg2_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 714: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 719: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 721: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 743: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 748: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 750: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 772: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 777: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 779: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 801: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 806: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 808: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 830: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 835: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 837: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 859: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 864: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 866: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 888: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 893: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 895: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 917: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 922: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 924: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 945: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 950: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 952: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 974: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 979: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 981: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1003: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1008: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1010: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1032: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1037: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1039: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1060: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1065: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1067: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1089: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1094: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1096: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1118: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1123: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1125: undefined reference to `hplsym_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1147: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1152: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 1154: undefined reference to `hplsym_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `axis_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 333: undefined reference to `hpline_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 338: undefined reference to `hpline_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `time3_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 255: undefined reference to `hplsof_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 256: undefined reference to `hplsof_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `set1_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 266: undefined reference to `hplset_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 267: undefined reference to `hplset_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 268: undefined reference to `hplset_ '
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 269: undefined reference to `hplset_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `hp1_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 315: undefined reference to `hpline_ '
obj \ Debug \ Cesaro 16 \ cos_ax_01.o: In function `hp2_ ':
C: / Users / Administrator / Desktop / provefortran / CÚsar 16/cos_ax_01.f: 323: undefined reference to `hplsym_ '
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
80 errors, 0 warnings

this is build messages


Code: [Select]
ro 16 \ cos_ax_01.o | | In function `ptt01_ ': |
ro 16 \ cos_ax_01.f | 186 | undefined reference to `hlimit_ '|
ro 16 \ cos_ax_01.f | 208 | undefined reference to `hplint_ '|
ro 16 \ cos_ax_01.f | 209 | undefined reference to `hplcap_ '|
ro 16 \ cos_ax_01.f | 220 | undefined reference to `hplend_ '|
ro 16 \ cos_ax_01.o | | In function `pagg1_ ': |
ro 16 \ cos_ax_01.f | 373 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 374 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 478 | undefined reference to `hbook1_ '|
ro 16 \ cos_ax_01.f | 484 | undefined reference to `hbook2_ '|
ro 16 \ cos_ax_01.f | 489 | undefined reference to `hplzon_ '|
ro 16 \ cos_ax_01.f | 494 | undefined reference to `hfill_ '|
ro 16 \ cos_ax_01.f | 495 | undefined reference to `hmaxim_ '|
ro 16 \ cos_ax_01.f | 496 | undefined reference to `hminim_ '|
ro 16 \ cos_ax_01.f | 497 | undefined reference to `hplopt_ '|
ro 16 \ cos_ax_01.f | 498 | undefined reference to `hplopt_ '|
ro 16 \ cos_ax_01.f | 499 | undefined reference to `hplot_ '|
ro 16 \ cos_ax_01.f | 513 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 515 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 531 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 533 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 534 | undefined reference to `hpltit_ '|
ro 16 \ cos_ax_01.o | | In function `cost6_ ': |
ro 16 \ cos_ax_01.f | 300 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 302 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.o | | In function `pagg2_ ': |
ro 16 \ cos_ax_01.f | 714 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 719 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 721 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 743 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 748 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 750 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 772 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 777 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 779 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 801 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 806 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 808 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 830 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 835 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 837 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 859 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 864 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 866 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 888 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 893 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 895 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 917 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 922 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 924 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 945 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 950 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 952 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 974 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 979 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 981 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1003 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1008 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1010 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1032 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1037 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1039 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1060 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1065 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1067 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1089 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1094 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1096 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1118 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1123 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1125 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.f | 1147 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1152 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 1154 | undefined reference to `hplsym_ '|
ro 16 \ cos_ax_01.o | | In function `axis_ ': |
ro 16 \ cos_ax_01.f | 333 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.f | 338 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.o | | In function `time3_ ': |
ro 16 \ cos_ax_01.f | 255 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.f | 256 | undefined reference to `hplsof_ '|
ro 16 \ cos_ax_01.o | | In function `set1_ ': |
ro 16 \ cos_ax_01.f | 266 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 267 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 268 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.f | 269 | undefined reference to `hplset_ '|
ro 16 \ cos_ax_01.o | | In function `hp1_ ': |
ro 16 \ cos_ax_01.f | 315 | undefined reference to `hpline_ '|
ro 16 \ cos_ax_01.o | | In function `hp2_ ': |
ro 16 \ cos_ax_01.f | 323 | undefined reference to `hplsym_ '|
||=== Build finished: 80 errors, 0 warnings === |

minigw the compiler and is set as follows:

Toolchain executables tab

C compiler = mingw32-gfortran.exe
C++ compiler = mingw32-gfortran.exe
Linker fo dynamic libs = mingw32-gfortran.exe
Linker fo static libs = ar.exe
debugger = gdb.exe
resurce compiler = windres.exe
Make program = mingw32-make.exe
« Last Edit: January 16, 2012, 01:41:36 pm by jerg »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: integrate libraries for Fortran
« Reply #3 on: January 16, 2012, 04:51:34 pm »
I did what you asked, this is the build log
If the build log is correct the compiler should have complained because of a syntax error on the command line. Did something go wrong with the formatting? Please use the "Copy" option of the tab with the compiler's output (right-click on the tab) and paste the content unmodified in code tags.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jerg

  • Single posting newcomer
  • *
  • Posts: 7
Re: integrate libraries for Fortran
« Reply #4 on: January 16, 2012, 06:21:29 pm »
ok, build messages


C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hlimit_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplint_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplcap_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplend_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hbook1_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hbook2_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplzon_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hfill_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hmaxim_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hminim_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplopt_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplopt_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplot_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpltit_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsof_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplset_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hpline_'|
C:\Users\Administrator\Desktop\provefortran\xcd\cos_ax_01.o:cos_ax_01.f|| undefined reference to `hplsym_'|
||=== Build finished: 80 errors, 0 warnings ===|



Right-click> copy contents to clipboard and then paste in the forum, instead of spaces makes the symbol "|"

I think it's normal that report one syntax error if it does not find the library files. without the library file does not know that the names are matched to call routines

that I write bad English :-)))
sorry
« Last Edit: January 16, 2012, 07:12:20 pm by jerg »

Offline jerg

  • Single posting newcomer
  • *
  • Posts: 7
Re: integrate libraries for Fortran
« Reply #5 on: January 16, 2012, 07:10:51 pm »
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
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12810
    • Travis build status
Re: integrate libraries for Fortran
« Reply #6 on: January 16, 2012, 07:26:35 pm »
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.
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: integrate libraries for Fortran
« Reply #7 on: January 16, 2012, 07:51:35 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
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jerg

  • Single posting newcomer
  • *
  • Posts: 7
Re: integrate libraries for Fortran
« Reply #8 on: January 16, 2012, 08:24:21 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: integrate libraries for Fortran
« Reply #9 on: January 16, 2012, 09:09:15 pm »
...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
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: integrate libraries for Fortran
« Reply #10 on: January 16, 2012, 09:12:24 pm »
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?
Our posts crossed. If you get the source code and it is not using non-standard Fortran it should certainly work. I've ported quite some Fortran code from Linux to Windows through different compilers in my early days.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: integrate libraries for Fortran
« Reply #11 on: January 17, 2012, 03:54:26 am »
...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

I don't think it can solve this. The problem depends on which compiler the lib packlib. lib is built by.

If the lib is built by CVF or Intel Fortran Compiler, then the name mangle is capital.
Regards,
xunxun