Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting alloca to work in DLL

Posted on 2003-11-07
1
Medium Priority
?
416 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
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 1000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

926 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