Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messagewormpai@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
Post Follow-up to this messageIn 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".
Post Follow-up to this messageOn 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".
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.