I am trying to write a simple external function in venext.c to calculate the error function. I have added #include math.h in the declarations and tryed to use the erf() function. When I do this I get a compile error.
Would appreciate any assistance with this
Thanks
Phil
Error Function in External Function
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
If you can just add the .lib file to the linker options it should be fine.
You could also take a look at
http://social.msdn.microsoft.com/Forums ... c36e98d718
You could also take a look at
http://social.msdn.microsoft.com/Forums ... c36e98d718
If you're using DSS, you can get a good approximation of ERF in a macro, without having to write an external function. See http://models.metasd.com/2010/05/cumula ... tribution/
Tom
Tom
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/