Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Trouble using GQOPT
Hi,

I am using GQOPT to run some kind of maximum likelihood procedure in
fortran. I am able to compile the program properly but when I try to
Build GQOPT.exe which contains my fortran program file, it gives me an
error saying unresolved external symbol SYMBOL_OPT@40. error executing
link.exe. Does anyone have any idea why its giving me this problem. I
am sure the library files are all ok because when I run another
program that uses the same library function from GQOPT, namely OPT, it
runs perfectly fine.

Any help is much appreciated.

Thanks in advance,
Seema

Report this thread to moderator Post Follow-up to this message
Old Post
seema
09-15-04 09:00 PM


Re: Trouble using GQOPT
wormpai@hotmail.com (seema) writes:

> error saying unresolved external symbol SYMBOL_OPT@40.

Does anything named symbol_opt appear in your code, intentionally or
unintentionally, in either upper or lower case or a mix?
The @40 is typical "decoration" added to procedure names by some
Windows compilers.  If you forgot to declare an array, or if you
mistyped its name, errors like that can occur.

--
Richard Maine                       |  Good judgment comes from experience;
email: my first.last at org.domain  |  experience comes from bad judgment.
org: nasa, domain: gov              |        -- Mark Twain

Report this thread to moderator Post Follow-up to this message
Old Post
Richard E Maine
09-15-04 09:00 PM


Re: Trouble using GQOPT
In article <87868fc.0409150953.320d46fe@posting.google.com>, seema
<wormpai@hotmail.com> writes
>Hi,
>
>I am using GQOPT to run some kind of maximum likelihood procedure in
>fortran. I am able to compile the program properly but when I try to
>Build GQOPT.exe which contains my fortran program file, it gives me an
>error saying unresolved external symbol SYMBOL_OPT@40. error executing
>link.exe. Does anyone have any idea why its giving me this problem. I
>am sure the library files are all ok because when I run another
>program that uses the same library function from GQOPT, namely OPT, it
>runs perfectly fine.
>
>Any help is much appreciated.
>
>Thanks in advance,
>Seema

It might just be that you haven't linked the library. Assuming you're
using CVF or some other compiler with Developer Studio, go to
Project|Settings and click the Link tab. Compare the libraries in here
with those in the same dialog for the project which works.

HTH,

Catherine.
--
Catherine Rees Lay
To email me, use my first name in front of the "at".

Report this thread to moderator Post Follow-up to this message
Old Post
Catherine Rees Lay
09-22-04 02:09 PM


Re: Trouble using GQOPT
On 15 Sep 2004 10:53:41 -0700, seema <wormpai@hotmail.com>
wrote in <87868fc.0409150953.320d46fe@posting.google.com>:

> I am using GQOPT to run some kind of maximum likelihood procedure in
> fortran. I am able to compile the program properly but when I try to
> Build GQOPT.exe which contains my fortran program file, it gives me an
> error saying unresolved external symbol SYMBOL_OPT@40. error executing
> link.exe. Does anyone have any idea why its giving me this problem. I
> am sure the library files are all ok because when I run another
> program that uses the same library function from GQOPT, namely OPT, it
> runs perfectly fine.

I believe the decoration @40 refers to the amount of stack the
passed arguments use (or something very similar; it's been a while since
I dealt with such low-level details).  It's possible that you have an error
in your argument list and that the real routine is, say, @36 or @44. Check
very carefully the number of arguments in your call, and that they are
all of the proper type.

--
Ivan Reid, Electronic & Computer Engineering,     ___     CMS  Collaboration
,
Brunel University.     Ivan.Reid@brunel.ac.uk             Room 40-1-B12, CER
N
KotPT -- "for stupidity above and beyond the call of duty".

Report this thread to moderator Post Follow-up to this message
Old Post
Dr Ivan D. Reid
09-22-04 09:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Fortran archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.