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.