Open ccormon opened 1 month ago
I'm having the same problem
/usr/bin/ld: /tmp/main-91a814.o: in function main': main.cpp:(.text+0x94): undefined reference to
Warlock::Warlock(std::cxx11::basic_string<char, std::char_traitsWarlock::Warlock(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: main.cpp:(.text+0x2de): undefined reference to
Warlock::setTitle(std::__cxx11::basic_string<char, std::char_traits
Little reminder: Here you must have a Warlock.cpp & Warlock.hpp files.
I'm running on a github codespace
I am having the same problem:
/usr/bin/ld: /tmp/main-4e32cc.o: in function main': main.cpp:(.text+0x8e): undefined reference to
Warlock::Warlock(std::cxx11::basic_string<char, std::char_traits
Little reminder: Here you must have a Warlock.cpp & Warlock.hpp files.
Here's my CPU's related info:
Architecture: x8664
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
CPU family: 6
Model: 158
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
Stepping: 10
CPU max MHz: 4100.0000
CPU min MHz: 800.0000
BogoMIPS: 6000.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant
tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtp
r pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd i
brs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsave
opt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
Virtualization features:
Virtualization: VT-x
Caches (sum of all):
L1d: 192 KiB (6 instances)
L1i: 192 KiB (6 instances)
L2: 1.5 MiB (6 instances)
L3: 9 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-5
Vulnerabilities:
Gather data sampling: Mitigation; Microcode
Itlb multihit: KVM: Mitigation: VMX disabled
L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT disabled
Mds: Mitigation; Clear CPU buffers; SMT disabled
Meltdown: Mitigation; PTI
Mmio stale data: Mitigation; Clear CPU buffers; SMT disabled
Reg file data sampling: Not affected
Retbleed: Mitigation; IBRS
Spec rstack overflow: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; IBRS; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Srbds: Mitigation; Microcode
Tsx async abort: Mitigation; TSX disabled
the issue is related to the #include in the main file used for testing. when the script tries to compile the main file with our own class, the files are placed in distinct directories, but the include points the the current directory of the main file. I've been able to work around this by duplicating the main file, and correcting the include statement
the issue is related to the #include in the main file used for testing. when the script tries to compile the main file with our own class, the files are placed in distinct directories, but the include points the the current directory of the main file. I've been able to work around this by duplicating the main file, and correcting the include statement
Could you provide more details on how you solved it? I couldn't fully understand... If you could give details about the steps and so on, that would be great.
The first exercice won't pass while my code pass in real exam. It doesn't compile :
/usr/bin/ld : /tmp/main-9fadc3.o : dans la fonction « main » : main.cpp:(.text+0x99) : référence indéfinie vers « Warlock::Warlock(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&) »
/usr/bin/ld : main.cpp:(.text+0x237) : référence indéfinie vers « Warlock::Warlock(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&) »
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
<-------------- OUR OUTPUT ------------>
Compilation Error stop.
Little reminder: Here you must have a Warlock.cpp & Warlock.hpp files.
Otherwise, the cheat code don't work too.