0

Getting unresolved external symbol error during creation of dll file

Hello,

I am getting 'unresolved external symbol error' while compiling and creating dll file from Fotran code.

To get line status, I am using the API:

CALL BRNINT(ICON(M),ICON(M+1),ICON(M+2),'STATUS', STATUS, IERR)

With ICON(M+2), I am getting the external symbol error. However, if I replace ICON(M+2) with '1', I get no error.

CALL BRNINT(ICON(M),ICON(M+1),'1','STATUS', STATUS, IERR)

Is it possible that the ICON(M+2) is being considered any other type other than type CHARACTER? Is there a way to fix the issue?

Thank you.

psys's avatar
58
psys
asked 2022-12-08 02:10:46 -0500, updated 2022-12-08 02:36:19 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Since line id is a character the value is stored in array CHRICN.

Try:

CALL BRNINT(ICON(M),ICON(M+1),CHRICN(M+2),'STATUS', STATUS, IERR)
perolofl's avatar
3.8k
perolofl
answered 2022-12-08 02:41:10 -0500
edit flag offensive 0 remove flag delete link

Comments

That worked well. Thank you.

psys's avatar psys (2022-12-08 02:44:04 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer