6
के लिए घोषणा नहीं है मैं उबंटू 13.04 (64-बिट) पर gcc 4.7.3
और clang 3.2.1
साथ निम्नलिखित कोड संकलन की कोशिश की है:stdlib.h putenv
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main() {
putenv("SDL_VIDEO_CENTERED=1");
return 0;
}
मैं उम्मीद putenv
stdlib.h
में घोषित किए जाने की हेडर, लेकिन मुझे निम्न चेतावनी मिलती है:
test.c: In function ‘main’:
test.c:6:5: warning: implicit declaration of function ‘putenv’ [-Wimplicit-function-declaration]
मेरे कार्य में इस फ़ंक्शन के लिए घोषणा क्यों अनुपलब्ध है?