First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Getting unresolved external symbol error during creation of dll file

asked Dec 8 '2

abdul gravatar image

updated Dec 8 '2

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.

1 answer

Sort by » oldest newest most voted
1

answered Dec 8 '2

perolofl gravatar image

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)
link

Comments

That worked well. Thank you.

abdul gravatar imageabdul (Dec 8 '2)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Dec 8 '2

Seen: 391 times

Last updated: Dec 08 '22