포트란 error와 관련하여 문의드립니다.(unresolved external symbol)

withsyh의 이미지

소스코드를 이용하여 모델링을 할 목적으로 오픈소스를 다운 받았습니다.

여러가지의 코드가 들어있어 해당 파일 들을 모두 이상없이 컴파일 되었는데

유독 빌드업 과정에서 다음과 같은 문구가 계속 발생하고 있습니다,

비슷한 문제에 대해 참고하여 적용하였지만 해결이 되지 않아

선배님들에서 조언을 구하고자 말씀을 드립니다.

부탁드리겠습니다.

--------------------Configuration: Runoff - Win32 Debug--------------------
Linking...
Runoff.obj : error LNK2001: unresolved external symbol _PRPOLL@4
Runoff.obj : error LNK2001: unresolved external symbol _HCURVE@4
Runoff.obj : error LNK2001: unresolved external symbol _HYDRO@0
Runoff.obj : error LNK2001: unresolved external symbol _RHYDRO2@0
Runoff.obj : error LNK2001: unresolved external symbol _QHYDRO@0
Runoff.obj : error LNK2001: unresolved external symbol _RHYDRO1@0
Prflow.obj : error LNK2001: unresolved external symbol _DATED@0
libc.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Runoff.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
Runoff.exe - 9 error(s), 0 warning(s)

yeonpil_net의 이미지

함수명만 봐서는 그런듯 싶은데...

질문할 땐 그 정도는 언급해줘야. 여기 들르는 사람들이 대부분 수질모델링에 목매는 사람들이 아닌 이상 저걸로 알턱이 없을 듯.

프로그래밍적으론 링크 에러입니다. 필요한 게 없다. 라는 메세지니 필요한 것을 포함시키세요.

아 그리고 배포될때 같이 윈도우용 컴파일된 실행파일도 같이 배포될 것인데.. 굳이 컴파일 해야 할 필요가 있으신가요?

!23456---1----+----2----+----3----+----4----+----5----+----6----+----7-2--+----8
"배웠다"는 "할 수 있다"의 동의어가 아니다.

withsyh의 이미지

말씀하신 프로그램이 맞습니다.

설명이 부족한점은 송구스럽습니다.

네 말씀해주신대로 실행파일이 있긴 하나 주요 변수만 임의값으로

변경하면서 확인할 필요가 있어서요.

조언말씀 감사합니다. 조금 더 알아봐야 겠네요.

klyx의 이미지

빌드에 실패한거니까 빌드 옵션(컴파일 옵션/링커 옵션)도 올리셔야죠.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.