|
How to install new units (i mean includes ex: stdio.h) for my C, and how to download more?
Started by Kalozka1 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course, SourceForge isn't the....
There are quite a few C libraries to be found, covering all sorts of different topics .
The headers (normally) just contain information to tell the compiler about the content of the library .
You're looking for libraries.
|
|
Possible Duplicate:
Why #include <stdio.h> is not required to use printf()?
Both printf and scanf have been declared in stdio.h. But they work even without that, dropping just a warning message? What's the theory behind this?
Started by voidmain on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It only seems....
As to why they work, the answer is "bad luck" .
The fact that a compiler warns you about invalid code and then goes on to compile the code means little .
When your compiler warns you, you should figure out what that means, and fix the problem .
|
|
Session transcript:
>type lookma.c int main() { printf("%s", "no stdio.h"); } >cl lookma.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. lookma.c Microsoft...
Started by Constantin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You should #include <stdio.h>
Finally, I should add that the current;stdio.h> or an equivalent....
The implicit declaration would be:
int printf();
Meaning happened to work for your call .
To the omission of #include <stdio.h>).
|
Ask your Facebook Friends
|
I am trying to use MinGW to compile a C program under Windows XP. The gcc.exe gives the following error:
stdio.h : No such file or directory
The code (hello.c) looks like this:
#include < stdio.h > void main() { printf("\nHello World\n"); }
I use...
Started by Bno on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You should try to install MinGW.
It is trying to look for a file called " stdio.h " with a space at the beginning and end.
Try changing the first line to:
#include <stdio.h>
without the spaces.
|
|
I am wondering how compilers on Mac OS X, Windows and Linux know where to find the C header files.
Specifically I am wondering how it knows where to find the #include with the <> brackets.
#include "/Users/Brock/Desktop/Myfile.h" // absolute reference...
Started by Brock Woolf on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
On my macbook, I see that there's such a file in /usr/include/c++/4.2.1/iostream , but you shouldn... .
Indeed, the file might be precompiled , or it may not even exist—the compiler may have it as a 'built-in' .
The location of the file is system dependent.
|
|
How to call "printf" directly without including stdio.h ?
I found a interesting tutorial here:
http://www.halcode.com/archives/2008/05/11/hello-world-c-and-gnu-as/
So, here's my attempt:
int main(){ char ss[] = "hello"; asm ( "pushl %ebp ;" "movl %esp...
Started by anta40 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Extern int printf (const char* format, ...); int main()....
So you can do this job by doing the copy-paste on your own .
In C, including other file is a mere copy-pasting its text into your program .
You can copy the declaration of printf into your program .
|
|
Stdio.h library missing I am having an issue only on my laptop, it seems that all of my libraries are missing from Visual Studio 2010 Premium.
I only have 3 libraries in the following directory:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include...
Started by Paul Adams on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at cprogramming):
I think you also need to install the platform SDK
Microsoft Windows SDK - Wikipedia, the free encyclopedia
The compiler (and other tools) can exist separately from all the header files and libraries necessary for writing programs on a particular machine... .
|
|
/***
*stdio.h - definitions/declarations for standard I/O routines
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file defines the structures, values, macros, and functions
* used by the level 2 I/O ("standard...
Started by q312998164 on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at csdn):
Stdio是标准输入输出吧,感觉你这里不全,都是些宏定义和结构体,没有函数体输入输出
看了没什么用,你们老师纯粹吃饱了没事干,要是不抄它我肯定写不出来 这问题提得太有水分了 都是一些定义,
哪有什么函数。 我只是弄了一小部分,我们老师目的是让我们规范写自己常用的头文件,就是要一些宏定义什么的,让代码规范啊 引用 3 楼 的回复:
都是一些定义,
哪有什么函数。 如果想写自己的头文件的话,,可以去看unix内核方面的书 ,,里面像这样的文件讲的很清楚 如需要阅读该回复,请 登录 或 注册 CSDN!... .
|
|
On Fri, 14 Aug 2009 00:31:15 -0700 (PDT), deepak <deepakpjose@gmail.com
Hi,
Is this stdio.h is a shared library. If not what are the shared
libraries a normal programmer uses?
Thanks,
Deepak
Started by deepak on
, 9 posts
by 6 people.
Answer Snippets (Read the full thread at omgili):
If there is ....
You can find out what shared libraries any Linux assumption is .
If you mean: where
are the things defined in stdio of the functions prototyped in the
stdio.h header file.
stdio.h is a header file, not a shared library...
|
|
On Thu, 12 Feb 2009 02:48:03 -0800 (PST), Jun Woong <woong@icu.ac.kr
Why do the synopses of btowc() and wctob() have <stdio.hTheir prototype declarations do not have any reference to things
defined in <stdio.hto in the Returns section. If ...
Started by Jun Woong on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at omgili):
-- Calvin
I take that back: wctob() has &....
It's never so
bad that it can't get worse.
--
Larry Jones
That's one of the remarkable things about life .
Jun Woong <woong@icu.ac.kr
I have no idea -- I agree with you that they seem to be spurious .
|