Dero
that's the default, i already tried using it explicitly, is what happens in the screen/pastebin
Simple Sorcerer
Dero
[Debian/12]::(~/stuff/HelloWorld) \
g++ -o app src/main.cpp -I./include
/nix/store/pbixrqd120nnw8a0ygfpm3mnwlr1mbj7-binutils-2.43.1/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/pbixrqd120nnw8a0ygfpm3mnwlr1mbj7-binutils-2.43.1/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit
status
Simple Sorcerer
Simple Sorcerer
I don't understand)))
Simple Sorcerer
We need to call the old guys
Simple Sorcerer
Simple Sorcerer
Ziky
are you sure you are launching correct gcc? 😁
Dero
i have no other gcc because it is a fresh install
Dero
[Debian/12]::(~/stuff/HelloWorld) which gcc
/home/fdero/.nix-profile/bin/gcc
Ziky
check if you have installed package like stdlib-dev
Dero
i need to install it for nix? or do i need to uninstall it if present?
Simple Sorcerer
Ziky
https://stackoverflow.com/questions/91576/crti-o-file-missing#91595 it shoudl contain initializations needed to run main. we discussed taht last weekend there
Ziky
check if you have installed libstdc++-dev
Simple Sorcerer
Ziky
Simple Sorcerer
Dero
https://ibb.co/df4k25z
On fedora (fresh-install) i don't even have as and ld btw
Dero
i'm running many virtual machines, it pretty much never works even if i'm tryng many configurations
Simple Sorcerer
Dero
it's normal to not have ld and as installed with gcc?
Dero
https://ibb.co/CBBW0kz
on Debian12 i installed libc6-dev, now i have that file but still doesn't work
Simple Sorcerer
Roxifλsz 🇱🇹
Dero
what do you mean avoid nix-env?
Roxifλsz 🇱🇹
what do you mean avoid nix-env?
quite literally, it links shit a bit weirdly and as a result can have file overshadowing issues and what not, a nix shell or putting it in your nix profile would probably work better
Dero
nix-shell refers to the so called: multi-user installation?
Roxifλsz 🇱🇹
probably, a proper full nix install would be best indeed
Simple Sorcerer
Simple Sorcerer
But it seems to me that the package you need to install should be called something like "base development package"
Roxifλsz 🇱🇹
nix-shell refers to the so called: multi-user installation?
either way just try out nix-shell -p gcc cmake ... without those installed in nix-env, that should drop you in a shell with the programs available and actually working. I'm not sure if the single user installation might be screwing you over or perhaps even something like selinux on fedora just denying access to nix store files but it showing up as "no such file or directory" errors
Dero
the reason i opted for single-user installations is that these VMs i'm running have no systemd
Dero
but anyway, i tried installing the multi-user, i have some weird problems starting the nix-daemon. I might consider installing a fresh distro native with systemd and see it that works
Dero
Dero
am i running some sort of container behind the scenes when using nix-shell -p?
Roxifλsz 🇱🇹
no, it just does some environment variable black magic
Dero
Okay, i will setup a proper native env and try again tomorrow maybe
Dero
thanks for the help you gave me so far
Ludovic 'Archivist'
Zero
Hello everyone.
How to install nvidia 470xx driver in fedora 41
klimi
Dero
For who's intrested in the whole nix thing. I installed it with a multiuser installation after setting up systemd, i also disabled SELinux, i then installed the whole set of tools once again but i ended-up with the same problems. Just to be clear i'll repeat once-again that i had the idea of using nix to package my free-open-source-software both for linux and macos, but since i had so many problems and since on two different linux distro i had different behaviours regarding as, ld, crti.o and stuff like that i decided to postpone or even abort this idea. The question remains on how could i package stuff in the most easy and low-effort and low-commitment way. For now i already set up an msi graphical installation for windows and snap installation for linux distro who supports it. For now that's enaugh i will get back on the problem in the future
Dero
Since most of the packages i need are only for the build itself, since the runtime is basically indipendent from all of this outside of libc and other stuff basically everybody knows how to install probably it can still be packaged for nix using the nix-shell -p functionalities but i'm not sure.
Rose
User Digitalvz has 1/2 warnings; be careful!
Reason:
ad
Chat Boss
ㅤ😊 sent a huge message, it has been re-uploaded as a file
Ajith
Hlo
Ziky
Ziky
Dero
Dero
btw i think i got it. Probably nix packages like gcc and stuff are not even supposed to be used outside of a default.nix
if inside of my default.nix i use them to build. The end result works fine
Dero
at least, this is on Fedora/40 with systemd multiuser install + disabled SElinux
Rose
User HR Rohini has 1/2 warnings; be careful!
Reason:
ad
Aryan
Can you give me a program for converting kilometres to miles and miles to kilometres
Ziky
Rose
User Aryan has 1/2 warnings; be careful!
Reason:
non english
Maxim
Ashmond
Ok
Rose
User Leroy has 1/2 warnings; be careful!
Reason:
nohello
Maneesh Naik
1st year bca c notes
Leroy
klimi
Rose
1st year bca c notes
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is.
These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot?
If you have a question ask it directly. You are more likely to get a response that way.
Ashmond
Am very new to c++/c programming and need beginners tutorials
Simple Sorcerer
Jojo
#projects
Rose
#projects
Please check the Resources section for links on Open Source Projects in C/C++ some of which are explained from scratch.
Jojo
https://t.me/cpp20programming
@𝑺𝒐𝒃𝒌𝒂
#ide
@𝑺𝒐𝒃𝒌𝒂
#res