-
rand() linker error
rand() linker error
-------------------------------------------------------------------------------
I´ve made a new classes library project in c++ .net, in one of the .cpp
I use the rand() function from C, and when I compile, I get the following exception:
error LNK2001: símbolo externo "int __cdecl rand(void)" (?
rand@@$$J0YAHXZ) sin resolver
I include the correct .h and even tried:
extern "C"
{
#include <stdlib.h>
}
but I continue get the same exception...
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks