Compilation issue of branch dev_bladed_dll_wrapper with MinGW on Windows
Hi all I would like first to thank you for the great work made with DTU controller :)
I'm trying to compilate the branch "dev_bladed_dll_wrapper" with the following tool
- Cmake for the make files with minGW compiler
And I obtain the following errors: [ 39%] Building Fortran object src/bladed_controller_hawc2/CMakeFiles/bladed_hawc2_interface.dir/bladed_controller_hawc2.f90.obj C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:23:22:
type(C_FUNPTR) :: p_func ! function pointer to DISCON subroutine in DLL for gfortran compiler
1
Error: Type name 'c_funptr' at (1) is ambiguous C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:184:20:
discon_dll%p_func = loadsymbol(discon_dll%p_dll,trim(adjustl(discon_dll%func_name)),0)
1
Error: 'p_func' at (1) is not a member of the 'tdiscon_dll' structure C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:186:33:
if (transfer(discon_dll%p_func,C_INTPTR_T)==0) then
1
Error: 'p_func' at (1) is not a member of the 'tdiscon_dll' structure C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:189:7:
else
1
Error: Unexpected ELSE statement at (1) C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:192:6:
endif
1
Error: Expecting END SUBROUTINE statement at (1) C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:196:50:
call c_f_procpointer(transfer(discon_dll%p_func,c_null_funptr),fp_discon)
1
Error: 'p_func' at (1) is not a member of the 'tdiscon_dll' structure C:\Generic_WTG\DTUWEC_Bladed\BasicDTUController\src\bladed_controller_hawc2\bladed_controller_hawc2.f90:418:22:
write (6,'(A,3I)') 'Floater motion sensor type used in htc-file must be 1 or 2. Now the type is:',floater_motion_type
1
Error: Nonnegative width required in format string at (1) make[2]: *** [src/bladed_controller_hawc2/CMakeFiles/bladed_hawc2_interface.dir/bladed_controller_hawc2.f90.obj] Erreur 1 make[1]: *** [src/bladed_controller_hawc2/CMakeFiles/bladed_hawc2_interface.dir/all] Erreur 2 make: *** [all] Erreur 2
Do you have any idea where the problem come fromes ?
Thanks in advance Best regards