The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 unable to use <stdlib.h> library

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MaggotsBrain Posted - 08/31/2014 : 10:42:15 PM
Hello,

I am working on an Origin C script and need the malloc function for my program. It is part of the stdlib library, however, when I try to include its header:

#include <stdlib.h>

the compiler invariably returns me the error message:
"C:\Program Files\OriginLab\Origin91\OriginC\system\stdlib.h: Error, include file not found"

I tried to copy the stdlib.h file from my Visual Studio folder to the folder: "C:\Program Files\OriginLab\Origin91\OriginC\system\" but this does not change anything, the same error message is returned.

I am clueless now, what should I do?
3   L A T E S T    R E P L I E S    (Newest First)
MaggotsBrain Posted - 09/02/2014 : 10:15:15 PM
Thank you, I did not know that.

I have managed to do what I wanted in another way, without the malloc function.
greg Posted - 09/02/2014 : 12:01:44 PM
To be clear...
malloc and free are both included in Origin C.
See Origin C Reference \ Global Functions \ Memory Management
http://www.originlab.com/doc/OriginC/ref/Memory-Management
Castiel Posted - 09/02/2014 : 09:02:30 AM
You don't need to include stdlib.h so long as #include <origin.h>.

Why do you want malloc()#65311; Do you know vector is available in origin c#65311;

©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000