Notifications
Clear all

[Solved] Uloha 2.1.1

hajdy
(@hajdy)
New Member

Zdravím,

 

aj keď opakujem predmet a minulý rok mi to išlo,

momentálne mám problém s tým assemblerovským kódom.

 

Program mi neskompiluje, a to tam mám takmer to isté čo je vo vzorovom kóde.

 

Výpis z konzoli:

"C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" --build C:\Users\Martin\CLionProjects\AP-BLOK-2\cmake-build-debug --target AP_BLOK_2
[1/2] Building C object CMakeFiles/AP_BLOK_2.dir/main.c.obj
[2/2] Linking C executable AP_BLOK_2.exe
FAILED: AP_BLOK_2.exe 
cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.3\bin\mingw\bin\gcc.exe -g  CMakeFiles/AP_BLOK_2.dir/main.c.obj -o AP_BLOK_2.exe -Wl,--out-implib,libAP_BLOK_2.dll.a -Wl,--major-image-version,0,--minor-image-version,0  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
CMakeFiles/AP_BLOK_2.dir/main.c.obj: in function `uloha_2_1_1':
C:/Users/Martin/CLionProjects/AP-BLOK-2/ulohy.c(.text+0x7a): relocation truncated to fit: R_X86_64_32S against `.bss'
C:/Users/Martin/CLionProjects/AP-BLOK-2/ulohy.c(.text+0x81): relocation truncated to fit: R_X86_64_32S against `.bss'
C:/Users/Martin/CLionProjects/AP-BLOK-2/ulohy.c(.text+0x8a): relocation truncated to fit: R_X86_64_32S against `.bss'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

 

Ďakujem za odpoveď.

Quote
Topic starter Posted : 04/03/2022 2:26 pm
Guide
(@guide)
Vedúci cvičení - Task boss Admin

Dobry den. V tomto pripade bude najlepsie, ked kontaktujete svojho cviciaceho s tym, ze mate zaujem konzultovat s praktikantom. Kazde cvicenie ma prideleneho praktikanta, ten sa s vami na to pozrie.

ReplyQuote
Posted : 07/03/2022 11:39 am
hajdy
(@hajdy)
New Member

V poriadku, prekonzultujem to teda s praktikantom.

ReplyQuote
Topic starter Posted : 07/03/2022 11:41 am
hajdy
(@hajdy)
New Member

Nakoniec som to vyriešil stiahnutím MinGW a zmeny cesty k nemu vo windows PATH a v Clione.

ReplyQuote
Topic starter Posted : 10/03/2022 10:16 am
Share:
Close Menu