Frédéric BOIS | 26 Jul 13:01
Picon
Favicon

linking problem with MCSim mod program

"Gregg M. Recer" wrote:
> 
> Hello:
> I am attempting to develop some pbpk models using MCSim (v4.2, downloaded
> from http://fredomatic.free.fr/) and data we are collecting on
> perchloroethylene exposures.  I'm sorry to bother you, but I am
> encountering a problem getting the source code compiled on my workstation.
> It is a PC running Win98.  I've got the gnu gcc compiler (v3.1) running
> under a cygwin red hat/gnu/linux shell (bash).  I also tried compiling
> using a DOS C compiler (MS Quick C v2.5).
> 
> The problem I'm encountering is during the first step to get the mod source
> files compiled and linked (using make on linux or the command-line
> compiler/linker in QC25).  Both compilers flag the same error on linking
> (the source files all compile fine).  They reference an undefined external
> function "GetVarHandle" called in lexfn.c.
> 
> gcc error message:
> Linking mod...
> lexfn.o(.text+0x1b0):lexfn.c: undefined reference to `GetVarHandle'
> collect2: ld returned 1 exit status
> make: *** [mod] Error 1
> 
> QC25 error message:
> LEXFN.OBJ(lexfn.c) : error L2029: '_GetVarHandle' : unresolved external
> 
> I see that function prototyped in modiface.h but don't see the complete
> function in any of the source files.
> 
> I apologize for bothering you for what is probably a trivial problem.  I'm
(Continue reading)

Frédéric BOIS | 26 Jul 16:55
Picon
Favicon

Objet : Re: your message on MCSim help

Hello!

You do not need, with version 4 of the software, to issue
a "make install" command.  According to your script output
the "mod" executable has been successfully generated:
* Created executable "mod".

You should then place the mod executable in your PATH of executables
or copy it to the "sim" folder. 
Try typing "mod" at the shell prompt in the sim directory (folder). It will tell you 
its version and also that it need a model file to process. Try then "mod perc.model"
(the perc model is in an example", that should generate a model.c file.

You would then go ahead an issue "make MODEL=perc.model" in the sim
folder and that should produce an "mcsim" executable program.

Tell me if you have more problems.

Frederic Bois

_____________________________________________
Dear Sirs:

I recently dl'd MCsim to my Mac from your site.  I am 
using Mac OS 10.1.5 (although I dl'd MCsim when I had 
Mac OS 10.1.4, if it makes any difference).  After figuring 
out that I needed to make aliases point to my compiler 
(Mac 10 compiler called cc and language c++ instead 
of gcc and g++) I finally used the make utility on the 
makefile (I will include the terminal image of that 
(Continue reading)


Gmane