Skip to content

u/SteveTheDust

In this archive from Feb 2021 to Aug 2021

16
posts
37
comments
0
media
140
score
3 saved before deletion

sudo pacman -S appmenu-gtk-module

error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
 if you're sure a package manager is not already
 running, you can remove /var/lib/pacman/db.lck

It gave me this error

3 points

I still have the problem but I don't think it's Arch-specific anymore. It errors on the full example code.

/usr/bin/ld: /tmp/ccdsfpEq.o: warning: relocation against `glad_glViewport' in read-only section `.text' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `main': main.cpp:(.text+0xc7): undefined reference to `gladLoadGLLoader' /usr/bin/ld: /tmp/ccdsfpEq.o: in function `framebuffer_size_callback(GLFWwindow*, int, int)': main.cpp:(.text+0x193): undefined reference to `glad_glViewport' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status

2 points

I can't link it. When I do g++ main.cpp -o gl -lglfw3 it errors

```/usr/bin/ld: cannot find -lglfw3

collect2: error: ld returned 1 exit status``` I checked if pacman installed glfw-x11 and it did. and when I tried doing which glfw-x11 it said "no glfw-x11" what is happening???

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.