Hirdetés
- Gyártási gondok a BOE-nél: Samsung kaphatja az iPhone 17e kijelzőit is
- Mágneses hordozható töltővel készül a Samsung a Galaxy S26 mellé
- Képeken mutatjuk meg a Lenovo Idea Tab Pro Gen 2-t
- Akciófigyelő: Új EarFun Air Pro fülhallgatók kedvezményes áron
- A Nothing történelmet emleget, közben új logót mutogat
- Görögök buktatták le a Moto G67-et és a Moto G77-et
- Szívós, szép és kitartó az új OnePlus óra
- Samsung Galaxy A36 5G - a középső testvér
- Samsung Galaxy A55 - új év, régi stratégia
- Samsung Galaxy S24 Ultra - ha működik, ne változtass!
- Hat év támogatást csomagolt fém házba a OnePlus Nord 4
- Google Pixel topik
- Így nézhet ki a Huawei Pura 90
- Komoly kihívót küldött a konkurenciára a Honor
- Méretes telekonverter az Oppo Find X9 Ultra hátán
-
Mobilarena

Új hozzászólás Aktív témák
-
emitter
őstag
válasz
Jester01
#1280
üzenetére
bemásoltam a home-ba a wincon.h-t, kiszedtem a kódból az include windows.h-t, és

emitter@LAPTOP:~$ gcc -Wall -funsigned-char -lm -lncurses -I. -o main main.c
In file included from main.c:7:
./wincon.h:2:20: error: curses.h: No such file or directory
In file included from main.c:7:
./wincon.h:15: error: syntax error before '*' token
./wincon.h:15: warning: type defaults to 'int' in declaration of 'curses_root'
./wincon.h:15: warning: data definition has no type or storage class
./wincon.h:17: error: 'COLOR_BLACK' undeclared here (not in a function)
./wincon.h:17: error: 'COLOR_RED' undeclared here (not in a function)
./wincon.h:17: error: 'COLOR_GREEN' undeclared here (not in a function)
./wincon.h:17: error: 'COLOR_YELLOW' undeclared here (not in a function)
./wincon.h:18: error: 'COLOR_BLUE' undeclared here (not in a function)
./wincon.h:18: error: 'COLOR_MAGENTA' undeclared here (not in a function)
./wincon.h:18: error: 'COLOR_CYAN' undeclared here (not in a function)
./wincon.h:18: error: 'COLOR_WHITE' undeclared here (not in a function)
./wincon.h: In function 'SetConsoleCursorPosition':
./wincon.h:32: warning: implicit declaration of function 'move'
./wincon.h: In function 'GetConsoleScreenBufferInfo':
./wincon.h:49: warning: implicit declaration of function 'init_curses'
./wincon.h:50: warning: implicit declaration of function 'getmaxx'
./wincon.h:51: warning: implicit declaration of function 'getmaxy'
./wincon.h: In function 'FillConsoleOutputCharacter':
./wincon.h:69: warning: implicit declaration of function 'addch'
./wincon.h: In function 'SetConsoleTextAttribute':
./wincon.h:89: warning: implicit declaration of function 'attrset'
./wincon.h:89: warning: implicit declaration of function 'COLOR_PAIR'
./wincon.h: In function 'emul_printf':
./wincon.h:103: error: 'va_list' undeclared (first use in this function)
./wincon.h:103: error: (Each undeclared identifier is reported only once
./wincon.h:103: error: for each function it appears in.)
./wincon.h:103: error: syntax error before 'args'
./wincon.h:108: warning: implicit declaration of function 'va_start'
./wincon.h:108: error: 'args' undeclared (first use in this function)
./wincon.h:110: warning: implicit declaration of function 'va_end'
./wincon.h:122: warning: implicit declaration of function 'addnstr'
./wincon.h:128: warning: implicit declaration of function 'attron'
./wincon.h:128: error: 'A_ALTCHARSET' undeclared (first use in this function)
./wincon.h:130: warning: implicit declaration of function 'attroff'
./wincon.h:136: warning: implicit declaration of function 'addstr'
./wincon.h:139: warning: implicit declaration of function 'refresh'
./wincon.h: In function 'emul_scanf':
./wincon.h:146: error: 'va_list' undeclared (first use in this function)
./wincon.h:146: error: syntax error before 'args'
./wincon.h:149: warning: implicit declaration of function 'getstr'
./wincon.h:150: error: 'args' undeclared (first use in this function)
./wincon.h:151: warning: implicit declaration of function 'vsscanf'
./wincon.h: In function 'fgets_wrapper':
./wincon.h:162: warning: implicit declaration of function 'echo'
./wincon.h:163: warning: implicit declaration of function 'getnstr'
./wincon.h:164: warning: implicit declaration of function 'noecho'
./wincon.h: In function 'getch_wrapper':
./wincon.h:175: warning: implicit declaration of function 'getch'
./wincon.h:179: error: 'KEY_UP' undeclared (first use in this function)
./wincon.h:183: error: 'KEY_LEFT' undeclared (first use in this function)
./wincon.h:187: error: 'KEY_RIGHT' undeclared (first use in this function)
./wincon.h:191: error: 'KEY_DOWN' undeclared (first use in this function)
./wincon.h: In function 'end_curses':
./wincon.h:205: warning: implicit declaration of function 'endwin'
./wincon.h: At top level:
./wincon.h:209: warning: conflicting types for 'init_curses'
./wincon.h:49: warning: previous implicit declaration of 'init_curses' was here
./wincon.h: In function 'init_curses':
./wincon.h:213: warning: implicit declaration of function 'initscr'
./wincon.h:213: warning: assignment makes pointer from integer without a cast
./wincon.h:215: warning: implicit declaration of function 'start_color'
./wincon.h:217: warning: implicit declaration of function 'keypad'
./wincon.h:217: error: 'TRUE' undeclared (first use in this function)
./wincon.h:220: warning: implicit declaration of function 'init_pair'
./wincon.h:226: error: 'ACS_VLINE' undeclared (first use in this function)
./wincon.h:227: error: 'ACS_HLINE' undeclared (first use in this function)
./wincon.h:228: error: 'ACS_CKBOARD' undeclared (first use in this function)
./wincon.h:229: error: 'ACS_LLCORNER' undeclared (first use in this function)
./wincon.h:230: error: 'ACS_LRCORNER' undeclared (first use in this function)
./wincon.h:231: error: 'ACS_ULCORNER' undeclared (first use in this function)
./wincon.h:232: error: 'ACS_URCORNER' undeclared (first use in this function)
./wincon.h:233: error: 'ACS_DIAMOND' undeclared (first use in this function)
main.c: In function 'main':
main.c:89: warning: suggest parentheses around assignment used as truth value
main.c:170: warning: suggest parentheses around assignment used as truth value
main.c: In function 'aknaz':
main.c:525: warning: unused variable 'temp'
main.c: In function 'feltar':
main.c:648: warning: unused variable 'l'
main.c:648: warning: unused variable 'k'
emitter@LAPTOP:~$
ez az ncurses micsoda, mert a gcc manjában nem találtam róla semmit
hasonlóképp a -lm mit csinál?
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
- Escape from Tarkov
- Luck Dragon: Asszociációs játék. :)
- Görögök buktatták le a Moto G67-et és a Moto G77-et
- exHWSW - Értünk mindenhez IS
- Kész, vége, ennyi volt: eladja tévés üzletágát a Sony
- Kerékpárosok, bringások ide!
- AMD K6-III, és minden ami RETRO - Oldschool tuning
- Audi, Cupra, Seat, Skoda, Volkswagen topik
- BestBuy topik
- Szívós, szép és kitartó az új OnePlus óra
- További aktív témák...
- Toshiba Enterprise Capacity MG09 18TB - 512MB, 7200rpm, SATA3 - 100/100 -as - Eladó!
- Akció! Gamer PC-Számítógép! Csere-Beszámítás! R5 1600X / RX 580 8GB / 500GB SSD + 2TB HDD / 16GB RAM
- SOYO M4 Air Mini PC, Intel N95, 16 GB DDR4 RAM, 512 GB SSD
- Új Lenovo LOQ 15IRX10, FHD IPS, i7-13650HX ,NVIDIA RTX 5070, 24GB DDR5, 512GB NVMe, gar
- HÁLÓZATI SWITCH AKCIÓ! Több db egyben, használt, nem használt , dobozos, 24-, 26-, 48 portos!
- HIBÁTLAN iPhone 12 mini 64GB Purple -1 ÉV GARANCIA - Kártyafüggetlen, MS3481
- GYÖNYÖRŰ iPhone 13 Mini 128GB Midnight - 1 ÉV GARANCIA -Kártyafüggetlen, MS4195, 94% Akksi
- Panasonic CF-XZ6 AIO all-in-one laptop tablet 2k touch i5-7300u speciális ütésálló rugged
- HIBÁTLAN iPhone 12 128GB Starlight -1 ÉV GARANCIA - Kártyafüggetlen, MS4408
- Wifis fèlkonfig! Kamatmentes rèszletre is! Èrdeklődj!
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs





