- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
------ Build started: Project: Console1, Configuration: Debug Win32 ------
Linking...
Source1.obj : error LNK2019: unresolved external symbol _S_RAND_GEN referenced in function _MAIN__
Source1.obj : error LNK2019: unresolved external symbol _VERML referenced in function _MAIN__
Source1.obj : error LNK2019: unresolved external symbol _S_SHOW_V referenced in function _MAIN__
Source1.obj : error LNK2019: unresolved external symbol _ERSET referenced in function _MAIN__
Source1.obj : error LNK2019: unresolved external symbol _E1CHK referenced in function _MAIN__
Source1.obj : error LNK2019: unresolved external symbol _N1RNOF referenced in function _MAIN__
Debug/Console1.exe : fatal error LNK1120: 6 unresolved externals
Build log written to file://D:fortranprojectsConsole1DebugBuildLog.txt
Console1 build failed.
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the problem persists, please submit an example to Intel Premier Support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for your replay. I found one problem. It is supposed to include the statement
INCLUDE 'link_f90_static.h'
I did this and solved my building problem. However, I tried to execute the example from IMSL called "validate" (source name imslmp.f90)and I got an error message. The sourceI used is given below:
Code:
! Use files
use rand_gen_int
use show_int
INCLUDE 'link_f90_static.h'
! Declarations
real (kind(1.e0)), parameter:: zero=0.e0
real (kind(1.e0)) x(5)
type (s_options) :: iopti(2)=s_options(0,zero)
character VERSION*48, LICENSE*48, VERML*48
external VERML, E1CHK, ERSET, N1RNOF
integer n1rnof
! Start the random number generator with a known seed.
iopti(1) = s_options(s_rand_gen_generator_seed,zero)
iopti(2) = s_options(123,zero)
call rand_gen(x, iopt=iopti)
! Verify the version of the library we are running
! by retrieving the version number via verml().
! Verify correct installation of the license number
! by retrieving the customer number via verml().
!
VERSION = VERML(1)
LICENSE = VERML(4)
WRITE(*,*) 'Library version: ', VERSION
WRITE(*,*) 'Customer number: ', LICENSE
! Get the random numbers
call rand_gen(x)
! Output the random numbers
call show(x,text=' X')
! Generate error
call erset(5, 0, 0)
call e1chk (-1234.0D0)
iopti(1) = s_options(15,zero)
call rand_gen(x, iopt=iopti)
call e1chk(296323.0d0)
write(*,*)
if (n1rnof(2) .eq. 0) then
write(*,*) "The output is correct."
else
write(*,*) "The output is not correct."
endif
end
The error message reads:
*** TERMINAL ERROR 1 from VERML. The environment variable CTT_DIR is not set
What this does mean?
Thank you in advance for your help,
Leonard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What you can do to test this is to start such a command prompt window, then from within that window, run the linked program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also had ISML change all the configurations it wanted during the set-up. Yet, running the validate program doesn't work. I get the following error messages:
Test IMSL 1 error LNK2019: unresolved external symbol _E1CHK referenced in function _MAIN__
Test IMSL 1 error LNK2019: unresolved external symbol _ERSET referenced in function _MAIN__
Test IMSL 1 error LNK2019: unresolved external symbol _N1RNOF referenced in function _MAIN__
Test IMSL 1 error LNK2019: unresolved external symbol _S_RAND_GEN referenced in function _MAIN__
Test IMSL 1 error LNK2019: unresolved external symbol _S_SHOW_V referenced in function _MAIN__
Test IMSL 1 error LNK2019: unresolved external symbol _VERML referenced in function _MAIN__
Test IMSL 1 fatal error LNK1120: 6 unresolved externals
If I include "INCLUDE 'link_f90_static.h'" I get a different set of errors:
Test IMSL 1 error LNK2005: ___initmbctable already defined in LIBCD.lib(mbctype.obj)
Test IMSL 1 error LNK2005: __getmbcp already defined in LIBCD.lib(mbctype.obj)
Test IMSL 1 error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj)
Test IMSL 1 error LNK2005: __setmbcp already defined in LIBCD.lib(mbctype.obj)
Test IMSL 1 error LNK2005: __tolower already defined in LIBCD.lib(tolower.obj)
Test IMSL 1 error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)
Test IMSL 1 fatal error LNK1169: one or more multiply defined symbols found
Test IMSL 1 warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
Test IMSL 1 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
I tried running the file directly from the command line, but got the same errors. What I am doing wrong and what do I need to do to use the IMSL library?
Thanks a lot for your help!
Felix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you'd like further assistance, please submit an issue to Intel Premier Support. Attach a ZIP of your project and a log of the command line session.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page