Solved

Getting alloca to work in DLL

Posted on 2003-11-07
1
403 Views
Last Modified: 2008-02-01
Hi,

I am using Visual C++ 6 to try to compile a C++ package called OpenNURBs into a DLL which can be opened by Matlab.

I am using the Matlab Add-on for Visual Studio, which lets you select "Matlab Project" as a new project. When compiling I get the error message:

"Error C2065: 'alloca' : undeclared identifier"

I figure I'm missing the C Run Time libraries. I've added msvcrt.lib to the Link settings for the project, but still no dice.

Any ideas?
0
Comment
Question by:cdunn03
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
ID: 9700933
There is no "alloca()" function in the VC++ runtime.  It's no wonder that the compiler is complaining about it.  Try alloc() instead.  

If you mean to use _alloca() then use that, but not alloca().
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question