!NSitFFQBzogUdWVQHa:matrix.org

Linux General (programming)

299 Members
5 Servers

Load older messages


SenderMessageTime
26 Jun 2022
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from big gravy to lappland#5776.01:53:24
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from lappland#5776 to big gravy.01:53:34
@_discord_443108463510290433:t2bot.ioBodgeMasterDownload dumpnbt.cpp10:09:46
@_discord_443108463510290433:t2bot.ioBodgeMasterDownload error.cpp10:09:47
@_discord_443108463510290433:t2bot.ioBodgeMasterDownload error.h10:09:49
@_discord_443108463510290433:t2bot.ioBodgeMasterDownload nbt.cpp10:09:50
@_discord_443108463510290433:t2bot.ioBodgeMasterDownload nbt.h10:09:50
@_discord_443108463510290433:t2bot.ioBodgeMaster Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following error:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The error goes away when I remove the call to NBT::doesMyCodeWork().
10:09:51
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following error:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The error goes away when I remove the call to NBT::doesMyCodeWork().
10:09:51
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following error:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The error goes away if I remove the call to NBT::doesMyCodeWork().
10:10:03
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following error:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The error goes away when I remove the call to NBT::doesMyCodeWork().
10:10:20
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following error:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The errors go away when I remove the call to NBT::doesMyCodeWork().
10:13:26
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following errors:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The errors go away when I remove the call to NBT::doesMyCodeWork().
10:13:38
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following errors:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The errors go away when I remove the call to NBT::doesMyCodeWork().
I have tried adding -l:error.so to the build command and having #include "../lib/error.h++" in dumpnbt.cpp, neither made a difference.
10:17:37
@_discord_443108463510290433:t2bot.ioBodgeMaster * Anyone here familiar with C++?
I have a linking issue that I can’t figure out. Files are attached below.
I’m using ErrorOr<T> in nbt.cpp which gets built into a shared library. That builds without errors. Now, if I try using said library in dumpnbt.cpp, I get the following errors:
Building libs...
mkdir: created directory 'bin/lib'
c++ -std=c++20 -Wall -shared -o ./bin/lib/error.so ./src/lib/error.cpp
c++ -std=c++20 -Wall -shared -o ./bin/lib/nbt.so ./src/lib/nbt.cpp
Building tools...
mkdir: created directory 'bin/tools'
c++ -std=c++20 -Wall src/tools/dumpnbt.cpp -Lbin/lib -l:nbt.so -o bin/tools/dumpnbt
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<std::vector<signed char, std::allocator<signed char> > >::ErrorOr(std::vector<signed char, std::allocator<signed char> >)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<signed char>::ErrorOr(signed char)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<float>::ErrorOr(float)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<double>::ErrorOr(double)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<int>::ErrorOr(int)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<short>::ErrorOr(short)'
/usr/bin/ld: bin/lib/nbt.so: undefined reference to `ErrorOr<long>::ErrorOr(long)'
collect2: error: ld returned 1 exit status

The errors go away when I remove the call to NBT::doesMyCodeWork().

Things I have tried:
- adding -l:error.so to the build command
- having #include "../lib/error.h++" in dumpnbt.cpp
- moving #include "error.h++" to nbt.h++
- turning NBT::doesMyCodeWork() into a stub function that doesn’t even touch ErrorOr<T>
- adding the functions that are supposed to be internal to nbt.cpp to nbt.h++
10:29:13
@_discord_443108463510290433:t2bot.ioBodgeMaster Problem solved. You have to put all the template related shit in a header, including implementations, with the exception of implementations that specify behavior for individual types.
-_- C++ moment
11:36:40
@_discord_514434396825321502:t2bot.ioAwkward Silence joined the room.15:03:06
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from big gravy to joel_#5776.15:39:22
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their profile picture.15:39:27
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from joel_#5776 to joel.15:39:28
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from joel to joel_#5776.15:50:04
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from joel_#5776 to joel.15:50:06
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from joel to joel_#5776.17:58:07
@_discord_938641213073023018:t2bot.ioserial grave pisser changed their display name from joel_#5776 to serial grave pisser.17:58:11
27 Jun 2022
@_discord_943432999821795358:t2bot.iogamagoot joined the room.13:34:20
28 Jun 2022
@_discord_763449477889130509:t2bot.ioJeb changed their display name from fish to Shwoomple#0098.05:09:36
@_discord_763449477889130509:t2bot.ioJeb changed their display name from Shwoomple#0098 to Jeb.05:09:39
@_discord_762138131519504415:t2bot.ioK.#3407 changed their profile picture.18:12:55
29 Jun 2022
@_discord_379083809125302272:t2bot.ioNachoPistacho#9976 changed their profile picture.04:05:29
@_discord_769392167743127562:t2bot.ioTomRiddle#3923 changed their profile picture.04:30:13

There are no newer messages yet.


Back to Room List