26 Jun 2022 |
| serial grave pisser changed their display name from big gravy to lappland#5776. | 01:53:24 |
| serial grave pisser changed their display name from lappland#5776 to big gravy. | 01:53:34 |
BodgeMaster | Download dumpnbt.cpp | 10:09:46 |
BodgeMaster | Download error.cpp | 10:09:47 |
BodgeMaster | Download error.h | 10:09:49 |
BodgeMaster | Download nbt.cpp | 10:09:50 |
BodgeMaster | Download nbt.h | 10:09:50 |
BodgeMaster | 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | * 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 |
BodgeMaster | 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 |
| Awkward Silence joined the room. | 15:03:06 |
| serial grave pisser changed their display name from big gravy to joel_#5776. | 15:39:22 |
| serial grave pisser changed their profile picture. | 15:39:27 |
| serial grave pisser changed their display name from joel_#5776 to joel. | 15:39:28 |
| serial grave pisser changed their display name from joel to joel_#5776. | 15:50:04 |
| serial grave pisser changed their display name from joel_#5776 to joel. | 15:50:06 |
| serial grave pisser changed their display name from joel to joel_#5776. | 17:58:07 |
| serial grave pisser changed their display name from joel_#5776 to serial grave pisser. | 17:58:11 |
27 Jun 2022 |
| gamagoot joined the room. | 13:34:20 |
28 Jun 2022 |
| Jeb changed their display name from fish to Shwoomple#0098. | 05:09:36 |
| Jeb changed their display name from Shwoomple#0098 to Jeb. | 05:09:39 |
| K.#3407 changed their profile picture. | 18:12:55 |
29 Jun 2022 |
| NachoPistacho#9976 changed their profile picture. | 04:05:29 |
| TomRiddle#3923 changed their profile picture. | 04:30:13 |