#help !!! compiler

9 messages · Page 1 of 1 (latest)

wanton widget
#

hllo friends, lately i've had a problem compiling in the windows subsystem for linux (wsl).
After a long time, i'm returning in the world, but i encounter this error when trying to compile whit GCC.

/usr/bin/ld: cannot find arrays: No such file or directory
collect2: error: ld returned 1 exit status

could you give me some idea about what if could be ?

In this case I am trying to compile a very simple example of an array in C++, it is worth clarifying that the code does not have any errors since previously (before leaving this world for a while) I compiled this same code and it worked correctly.😫

modest lava
#

cd into the file.

Type this in the terminal

g++ (File Name).cpp -o (File Name)
#

and type

./(File Name)
#

It should run

#

But from what I see you already know it.
So cd into the directory where your file is loacted

#

and try it again

sweet coyoteBOT
#

@modest lava has reached level 2. GG!

wanton widget
#

@modest lava Oh crap, I felt so stupid. Next time I'll double-check before asking a question.