Please wait...
×

Error

  • Re: IFM_example problem in 64-bit on dll-module load, "Unknown reason"

    Hi,

    I am facing the below issue while build the HelloWorld project in MS visual C ++ 2010 Express.
    I am working on Feflow Classic 32 bit and also C++ 2010 on 32 bit system.

    I added Module Definition file as $(ProjectName).def in C ++ configuration -> Linker -> input  to get over the previous error but now I am getting below error while building the HelloWorld.

    2[color=blue][b]>------ Build started: Project: HelloWorld1, Configuration: Debug Win32 ------
    2>  HelloWorld.cpp
    2>LINK : fatal error LNK1104: cannot open file 'HelloWorld1.def'
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========[/b][/color]
    Can anyone please guide me to resolve this issue.

    Thanks
    Madhura
  • Re: Setting up a ifm - project with Dev-C++

    Hi,

    I am new to c++ and IFM programming. I am setting up the environment with VS C++ 2010 for IFM programming.
    I am following the steps mentioned in the ifm_example.pdf which i found from the net.
    At step 5 in the document that is compiling the projects, I am stuck since I am getting an error build failure as below.

    I read on rhe forum that this issue has been resolved in the patch 6.06 hence I also downloaded the patch 6.06 but still I am getting the same error.
    Can anyone please help me to resolve this issue.

    Creating library C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloFeflowWorld\Debug\HelloFeflowWorld.lib and object C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloFeflowWorld\Debug\HelloFeflowWorld.exp
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmSetPrimarySource referenced in function _RegisterModule
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmSetHtmlPage referenced in function _RegisterModule
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmSetCopyrightPath referenced in function _RegisterModule
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmSetDescriptionString referenced in function _RegisterModule
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmRegisterModule referenced in function _RegisterModule
    2>HelloFeflowWorld.obj : error LNK2019: unresolved external symbol _IfmModuleVersion referenced in function _RegisterModule
    2>C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloFeflowWorld\Debug\HelloFeflowWorld.dll : fatal error LNK1120: 6 unresolved externals
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Thanks in advance.
    Regards,
    Madhura
  • Getting error LNK2019: unresolved external symbol IfmSetPrimarySource...

    Hi,
    I am new to c++ as well as IFM programming.
    I am following the basic example in ifm_example.pdf which i found on internet.
    I have reached the point 5 that is Compile the module. When i try to build the projects (HelloWorld and IFM )I am getting an error as below.

    and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloWorld\Release\HelloWorld1.exp
    2[color=blue]>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetPrimarySource referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetHtmlPage referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetCopyrightPath referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetDescriptionString referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmRegisterModule referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmModuleVersion referenced in function _RegisterModule[/color]2>C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloWorld\Release\HelloWorld1.dll : fatal error LNK1120: 6 unresolved externals

    Below is the stack trace of the build
    1>------ Build started: Project: ifm, Configuration: Release Win32 ------
    1>  ifc_pch.c
    1>  ifc_alloc.c
    1>  ifc_amr.c
    1>  ifc_archive.c
    1>  ifc_assert.c
    1>  ifc_bc.c
    1>  ifc_bcc.c
    1>  ifc_bhe.c
    1>  ifc_budg.c
    1>  ifc_compat.c
    1>  ifc_content.c
    1>  ifc_ctrl.c
    1>  ifc_diagram.c
    1>  ifc_file.c
    1>  ifc_fracs.c
    1>  ifc_graphic.c
    1>  ifc_grp.c
    1>  ifc_mat.c
    1>  ifc_module.c
    1>  ifc_obs.c
    1>  ifc_power.c
    1>  ifc_profile.c
    1>  ifc_refdistr.c
    1>  ifc_regio.c
    1>  ifc_res.c
    1>  ifc_strings.c
    1>  ifc_time.c
    1>  ifc_topo.c
    1>  ifc_win32.c
    1>  ifc_xdk.c
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(C:\Documents and Settings\All Users\Documents\WASY FEFLOW 6.0\sdk\ifm\lib\vc9\..\x86\ifm.lib) does not match the Library's OutputFile property value (C:\Documents and Settings\All Users\Documents\WASY FEFLOW 6.0\sdk\ifm\lib\x86\ifms.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(ifm) does not match the Library's OutputFile property value (ifms). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
    1>  ifm.vcxproj -> C:\Documents and Settings\All Users\Documents\WASY FEFLOW 6.0\sdk\ifm\lib\vc9\..\x86\ifm.lib
    2>------ Build started: Project: HelloWorld1, Configuration: Release Win32 ------
    2>  HelloWorld.cpp
    2>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
    2>    Creating library C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloWorld\Release\HelloWorld1.lib and object C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloWorld\Release\HelloWorld1.exp
    2[color=blue]>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetPrimarySource referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetHtmlPage referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetCopyrightPath referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmSetDescriptionString referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmRegisterModule referenced in function _RegisterModule
    2>HelloWorld.obj : error LNK2019: unresolved external symbol _IfmModuleVersion referenced in function _RegisterModule[/color]2>C:\Documents and Settings\mwhuser\My Documents\FEFLOW IFM Projects\HelloWorld\Release\HelloWorld1.dll : fatal error LNK1120: 6 unresolved externals
    ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I really appreciate your help to resolve this error and proceed.