Home > undefined assuming > error c4013 visual studio

Error C4013 Visual Studio

Contents

resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired printf undefined; assuming extern returning int content Samples We’re sorry. The content you requested has been removed. You’ll be c4013: 'printf' undefined; assuming extern returning int auto redirected in 1 second. C/C++ Building Reference C/C++ Build Errors Compiler Warnings C4000 Through C4199 Compiler Warnings C4000 Through

Extern In C

C4199 Compiler Warning (level 3) C4013 Compiler Warning (level 3) C4013 Compiler Warning (level 3) C4013 Compiler Warning (level 4) C4001 Compiler Warning (level 1) C4002 Compiler Warning (level 1) C4003 Compiler Warning (level 1) C4005 Compiler Warning (level 1) C4006 Compiler Warning (level 2) C4007 Compiler Warning (levels 2 and 3) C4008 Compiler Warning (level 1) C4010 Compiler Warning (level 3) C4013 Compiler Warning (level 1) C4015 Compiler Warning (level 3) C4018 Compiler Warning (level 4) C4019 Compiler Warning (level 1) C4020 Compiler Warning (level 1) C4022 Compiler Warning (level 3) C4023 Compiler Warning (level 1) C4024 Compiler Warning (level 1) C4025 Compiler Warning (level 1) C4026 Compiler Warning (level 1) C4027 Compiler Warning (level 1) C4028 Compiler Warning (level 1) C4029 Compiler Warning (level 1) C4030 Compiler Warning (level 1) C4031 Compiler Warning (level 4) C4032 Compiler Warning (level 1) C4033 Compiler Warning (level 1) C4034 Compiler Warning (level 1) C4036 Compiler Warning (level 1) C4038 Compiler Warning (level 1) C4041 Compiler Warning (level 1) C4042 Compiler Warning (level 1) C4045 Compiler Warning (level 1) C4047 Compiler Warning (level 1) C4048 Compiler Warning (level 1) C4049 Compiler Warning (level 2) C4051 Compiler Warning (level 1) C4052 Compiler Warning (level 4) C4053 Compiler Warning (level 1) C4054 Compiler Warning (level 1) C4055 Compiler Warning (level 2) C4056 Compiler Warning (level 4) C4057 Compiler Warning (level 4) C4061 Compiler Warning (level 4) C4062 Compiler Warning (level 3) C4066 Compiler Warning (level 1) C4067 Compiler Warning (level 1) C4068 Compiler Warning (level 3) C4073 Compiler Warning (level 1) C4074 Compiler Warning (level 1) C4075 Compiler Warning (level 1) C4076 Compiler Warning (level 1) C4077 Compiler Warning (level 1) C4079 Compiler Warning (level 1) C4080 Compiler Warning (level 1) C4081 Compiler Warning (level 1)

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Warning: C4013 in C lang https://msdn.microsoft.com/en-us/library/d3ct4kz9.aspx up vote 0 down vote favorite #include #include void prints(char *menu) { int p = 0; p = navigation(p, menu); } int navigation(int p, char *menu) { return p; } void main(void) { char *menu[] = {"data", "coming", "here"}; prints(*menu); printf("\n"); } How can i fix this the warning is: Warning 1 warning C4013: 'navigation' undefined; assuming extern returning int i:*\testingzone\index.c 9 c visual-studio-2010 http://stackoverflow.com/questions/3313671/warning-c4013-in-c-lang share|improve this question asked Jul 22 '10 at 21:31 ScReYm0 751310 1 In some languages (python, PHP, JavaScript, others) you can declare functions which call other functions that aren't defined yet, and all that matters is if the function is declared by the time you call the function that calls it... if you see what I mean. C isn't like that. –Cole Jul 22 '10 at 21:35 add a comment| 5 Answers 5 active oldest votes up vote 2 down vote Along with the other suggestions you've received to declare the function, in this case you can just rearrange the function definitions: #include #include int navigation(int p, char *menu) { return p; } void prints(char *menu) { int p = 0; p = navigation(p, menu); } int main(void) { char *menu[] = {"data", "coming", "here"}; prints(*menu); printf("\n"); return 0; } This isn't always possible though. In particular, you need to use a declaration when/if you have mutually recursive functions (A calls B and B also calls A). I've also fixed the undefined behavior from defining the wrong return type from main. share|improve this answer answered Jul 22 '10 at 21:48 Jerry

4/8/2014 10:07 AM [mathx] can be quite painful to build it, particularly if your C compiler happens not to be gcc. In fact, I have not heard http://lua-users.org/lists/lua-l/2014-04/msg00428.html of anyone getting it to work on (surprise, surprise) Visual C++. I'd be very interested in what needs to be done to make mathx more portable. I get tired http://www.gamedev.net/topic/651403-can-someone-make-this-vs-2010/ of the non-stop Visual C++ bashing. Can we please stop it? Visual C++ isn't going away. Anyway, the first portability fix would be to make the same code compile undefined; assuming against Lua 5.1 and 5.2 like a lot of other modules: LUALIB_API int luaopen_mathx(lua_State *L) { #if LUA_VERSION_NUM <= 501 luaL_register(L,LUA_MATHLIBNAME,R); #else lua_getglobal(L,LUA_MATHLIBNAME); luaL_setfuncs(L,R,0); #endif Outside of that, it compiles without issue on Visual Studio 2013. For Visual Studio 2010 and 2012, the following warnings and errors are generated. I don't know what you would do to fix them. lmathx.c(21) undefined; assuming extern : warning C4013: 'acosh' undefined; assuming extern returning int lmathx.c(27) : warning C4013: 'asinh' undefined; assuming extern returning int lmathx.c(33) : warning C4013: 'atanh' undefined; assuming extern returning int lmathx.c(39) : warning C4013: 'cbrt' undefined; assuming extern returning int lmathx.c(45) : warning C4013: 'copysign' undefined; assuming extern returning int lmathx.c(51) : warning C4013: 'erf' undefined; assuming extern returning int lmathx.c(57) : warning C4013: 'erfc' undefined; assuming extern returning int lmathx.c(63) : warning C4013: 'exp2' undefined; assuming extern returning int lmathx.c(69) : warning C4013: 'expm1' undefined; assuming extern returning int lmathx.c(75) : warning C4013: 'fdim' undefined; assuming extern returning int lmathx.c(81) : warning C4013: 'fma' undefined; assuming extern returning int lmathx.c(89) : warning C4013: 'fmax' undefined; assuming extern returning int lmathx.c(98) : warning C4013: 'fmin' undefined; assuming extern returning int lmathx.c(105) : warning C4013: 'fpclassify' undefined; assuming extern returning int lmathx.c(107) : error C2065: 'FP_INFINITE' : undeclared identifier lmathx.c(107) : error C2051: case expression not constant lmathx.c(108) : error C2065: 'FP_NAN' : undeclared identifier lmathx.c(108) : error C2051: case expression not constant lmathx.c(109) : error C2065: 'FP_NORMAL

topic ForumsMembersHelp Files Developer Journals Gallery Calendar Downloads Resources Store Classifieds Tracker Links Home For Beginners Articles All Articles Post an Article Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL and Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile Development Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Music and Sound Visual Arts Business Breaking into the Industry Production and Management Interviews Business and Law Event Coverage Forums All Forums Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL & Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile & Console Development Build Systems & Source Control Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Writing For Games Music and Sound Visual Arts Gallery Business Breaking into the Industry Business & Law Production & Management Community GDNet Lounge Coding Horrors Article Writing Comments, Suggestions and Ideas Your Announcements Hobby Project Classifieds Indie Project Showcase Community Developer Journals GDNet+ Subscriptions Gallery Store Classifieds Jobs Freelancers Hobby Projects Marketplace Newsletter » Home » Forums » The Technical Side » General Programming Chat Watched Content New Content 2 Can someone make this VS 2010? Started by noatom, Dec 19 2013 12:02 PM Old topic! Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic. You cannot reply to this topic 12 replies to this topic #1 noatom Members -Reputation: 919 Like -3Likes Like Posted 19 December 2013 - 12:02 PM https://github.com/pooler/cpuminer Can someone please turn that into a visual studio 2010 project? I've been trying to somehow use mingw but

 

Related content

c error c4013

C Error C table id toc tbody tr td div id toctitle Contents div ul li a href C printf Undefined Assuming Extern Returning Int a li li a href Extern In C a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss relatedl the workings and policies of this site About Us Learn printf undefined assuming extern returning int more about Stack Overflow the company Business Learn more about hiring developers or p h id C printf Undefined Assuming Extern Returning

error c4013

Error C table id toc tbody tr td div id toctitle Contents div ul li a href Error C a li li a href C printf Undefined Assuming Extern Returning Int a li ul td tr tbody table p resources Windows Server resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine relatedl Forums Blogs Channel Documentation APIs and reference Dev visual studio warning c centers Retired content Samples We re sorry The content you requested has been p h id Error C p removed You ll be auto redirected in