New Header file compiling problems

Use this forum to post Vensim related questions.
Post Reply
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

New Header file compiling problems

Post by RWTH_FCN »

Dear all,

I'm trying to use an old model of ours and upon loading the external file I get the "External function mismatch 51050 (got 400) error" (http://www.ventanasystems.co.uk/forum/v ... php?t=5512; http://www.ventanasystems.co.uk/forum/v ... 050#p15002). My understanding is that I need to recompile the dll using the new header file that I find in the ..\Vensim\COMP folder of the new VenSim installation. This creates multiple errors when I try to compile the new dll. Should I also use updated venext.def and venext.c ? Using those eliminates a few errors (Using the old venext.c creates multiple errors in that file). The errors that I still get are because of "GMEM_ZEROINIT", "GMEM_MOVEABLE" and "JBUF". Any advice? Why does the exchange of the header file create multiple errors? Compiling with the old header file works just fine.

I am using VENSIM DSS 6.4E and Visual Studio 2013 on a Windows 7 (64bit) computer.

Thank you in advance!
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: New Header file compiling problems

Post by Administrator »

Are any of those errors Vensim ones? I don't recognise JBUF. "GMEM_ZEROINIT" and "GMEM_MOVEABLE" are to do with memory allocation, so you are probably missing a header file.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
RWTH_FCN
Senior Member
Posts: 148
Joined: Wed Feb 08, 2017 9:10 am
Vensim version: DSS

Re: New Header file compiling problems

Post by RWTH_FCN »

Thanks for your reply. I figured it out i had to merge my old vensim.c and some functions from the new one. Its quiet stressing to compile a new dll with the new header file because a lot of functions have changed in some ways. Thank you anyway.
Post Reply