Solved

Getting alloca to work in DLL

Posted on 2003-11-07
1
396 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 250 total points
Comment Utility
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 your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now