comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » calling C++ from within IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: calling C++ from within IDL [message #91728 is a reply to message #91726] Sat, 15 August 2015 07:39 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 8/14/15 2:15 pm, dtakir wrote:
> Hello IDLers,
>
> I was trying to compile the following code(from Mike Galloy's book):
>
> float mg_callex_total(float arr[], int *n) {
>
>
> int i;
> float total = 0.0;
> for(i = 0; i < *n; i++) total+=arr[i];
> return(total);
>
>
>
> }
>
> to create a shared object, but I got the following errors. Anyone knows why I got these errors? Thanks in advance.
> Driss
>
>
> IDL> mg_make_dll, 'mg_callex_total.c'
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> cl -D_DLL -DMSWIN -DWIN32 -D_MT /nologo /I"C:\Program Files\Exelis\IDL84\external\include" /c "C:\Users\dtakir\Desktop\idlC++Test\mg_callex_total.c" /Fo"mg_callex_total_5676_IGSWZAWGLT-ELEE.obj"
> Could Not Find C:\Users\dtakir\.idl\idl\compile_dir-118-idl_8_4-win32-x86_6 4-m64-f64\mg_callex_total_5676_IGSWZAWGLT-ELEE.exp
> Could Not Find C:\Users\dtakir\.idl\idl\compile_dir-118-idl_8_4-win32-x86_6 4-m64-f64\mg_callex_total_5676_IGSWZAWGLT-ELEE.lib
> Could Not Find C:\Users\dtakir\.idl\idl\compile_dir-118-idl_8_4-win32-x86_6 4-m64-f64\mg_callex_total_5676_IGSWZAWGLT-ELEE.obj
> IDL>
>

I don't think you have the correct compiler. Download Visual Studio
Community from:

https://www.visualstudio.com/en-US/products/visual-studio-ex press-vs

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: to create & overlay a polygon shape file
Next Topic: create oval shape

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:37:29 PDT 2025

Total time taken to generate the page: 0.00414 seconds