seh | Space Exploration History | Data Visualization library
kandi X-RAY | seh Summary
kandi X-RAY | seh Summary
# SEH - Space Exploration History.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of seh
seh Key Features
seh Examples and Code Snippets
Community Discussions
Trending Discussions on seh
QUESTION
Environment
- Windows 10
- MinGW-W64 x86_64-ucrt-posix-seh, 11.2.0
- cmake version 3.19.5
Error comes message as follows:
[ 74%] Linking CXX executable ..\cjportedtests.exe
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Libraries/mariadb/lib/libtest_framework.a(test_asserts.cpp.obj): in function testsuite::assertEquals(sql::SQLString const&, char const*, char const*, int)': D:/Daten/Installation/Coding/mariadb/mariadb-connector-cpp-1.0.1-src/test/framework/test_asserts.cpp:298: undefined reference to
__imp__ZN3sqlneERKNS_9SQLStringEPKc'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [test\CJUnitTestsPort\CMakeFiles\CJUnitTestsPort.dir\build.make:347: test/cjportedtests.exe] Error 1
make[1]: *** [CMakeFiles\Makefile2:411: test/CJUnitTestsPort/CMakeFiles/CJUnitTestsPort.dir/all] Error 2
make: *** [makefile:124: all] Error 2
Comment
File which produces error at line 298 (marked as comment)
test/framework/test_asserts.cpp ...ANSWER
Answered 2022-Apr-04 at 14:38According to the comment of Lawrin Novitsky, the solution to the problem is the order of linking. Question edited to include the solution as well.
Solution- [test/CJUnitTestsPort/CMakeLists.txt:35,41] change order of linking to ${LIBRARY_NAME} after test_framework
- [test/unit/CMakeLists.txt:31] change order of linking to ${LIBRARY_NAME} after test_framework
- [test/unit/example/CMakeLists.txt:48] change order of linking to ${LIBRARY_NAME} after test_framework
- [test/unit/classes/CMakeLists.txt:46,66,87,107,127,147,167,208] change order of linking to ${LIBRARY_NAME} after test_framework
- [test/unit/performance/CMakeLists.txt:45] change order of linking to ${LIBRARY_NAME} after test_framework
- [test/unit/bugs/CMakeLists.txt:45] change order of linking to ${LIBRARY_NAME} after test_framework
QUESTION
I am trying to use the ranges
library from c++20 and I have this simple loop.
ANSWER
Answered 2021-Dec-18 at 15:16Depending on the version of your compiler, different standards are the default. For 11.2
it is C++ 17 AFAIK.
Cou can just add a flag and it compiles:
g++ --std=c++20 main.cc
QUESTION
I've been trying to get an LLVM toolchain setup on my Windows 10 machine. I gave up on building from source and have the MSYS2 mingw-w64-clang-x86_64-toolchain package installed (clang version 13.0.0).
I can compile simple code that uses the C++ standard library. I'm using clang to compile, lld to link, and I should be using libc++.
To test linking an additional library, I'm using glfw:
...ANSWER
Answered 2021-Nov-27 at 16:44Well, it seems I have a lot to learn about command line compiling/linking.
I fixed it by adding -lgdi32 to the compile tags:
clang++ -Iinclude\ -Llib\ -lglfw3 -lgdi32 -v .\main.cpp
Got the idea from this thread: https://github.com/ziglang/zig/issues/3319 From the thread, near the bottom, there is some good advice:
When you see undefined symbol: __imp_CreateDCW the trick is to look up what DLL that is in. A duck duck go search lands us at https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createdcw which says at the bottom it is in Gdi32.dll. So you need addSystemLibrary("Gdi32").
For some reason I assumed all the undefined function calls were from glfw, but they aren't, they are from the GDI32 Win32 library.
Just goes to show, for anyone at my experience level, you should probably make sure to google ALL relevant text from your errors and don't make assumptions about the provenance of things..
QUESTION
I have GCC 11.2.0 installed on my Windows 10 machine (from here: https://winlibs.com/). I have updated the environment variable Path to C:\MinGW\bin
gcc version 11.2.0 (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders)
I'm using VSCode with the C/C++ extension configured to use the correct compiler path.
I want to use a C++20 feature which is
std::numbers::sqrt2
Still I get an error telling me it doesn't know std::numbers
...ANSWER
Answered 2021-Sep-08 at 14:14What am I missing ?
In order to use C++20 features, you need to select the C++20 standard version.
QUESTION
I upgrade PostgreSQL from 13.3 to 13.4 and got a fatal error by pgAdmin 4. I found other similar question that try to fix the problem deleting the folder: "C:\Users\myusername\AppData\Roaming\pgadmin\sessions" and running pgAdmin as admin but nothing happen. Also i completely remove postgres and reinstall it, and i installed pgAdmin with his separate installation, but nothing happen again. This is the error:
...ANSWER
Answered 2021-Sep-11 at 18:16This is something that seem to have changed between pgAdmin4 5.1 and 5.7. I've seen this on a machine that had been connected to a WiFi mobile hotspot (but it could happen in other circumstances).
It has something to do with the way the dns
library is used on Windows, so this could happen to other applications that use it in the same way.
Essentially, dns.Resolver
scans the Windows registry for all network interfaces found under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
The WiFi mobile hotspot that machine had been connected to had set a DhcpDomain
key with value ".home
". The dns.Resolver
found this value and split it using the dot into multiple labels, one of them being empty. That caused the exception you mention: dns.name.EmptyLabel: A DNS label is empty
.
This occurred even when the WiFi network was turned off: those were the last settings that had been in use and dns.Resolver
didn't check whether the interface was enabled.
The latest version of pgAdmin seems to be an older version of dnspython (1.16.0), so I'm not sure whether this has been fixed in more recent versions. For now, there seems to be two options:
Delete or change the
DhcpDomain
subkey if you find it in on of the subkeys ofHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
(there might even be a way to force that value through the Control Panel).Connect to a different network that doesn't set this value.
QUESTION
I have a dataframe consisting of text and languages
...ANSWER
Answered 2021-Nov-02 at 16:32I do not know exactly how to use StopWordsRemover, but based on what you did and on the documentation, I can offer this solution (without UDFs):
QUESTION
I'm starting from scratch and am following the main steps below:
1. Build and install a cross-compiler toolchain (host Linux, target Win64):
Get this MXE version, only changing plugins/gcc6/gcc6-overlay.mk
with:
ANSWER
Answered 2021-Sep-17 at 19:13This is not going to be a proper answer, but at least I can describe the end-to-end mechanism that's causing the problem. I'm not familiar enough with all the intricacies of MingW, winpthread, etc... to really say exactly who's doing something wrong, but I'll leave it to the experts ;-)
So it all starts with SystemC's configure
which generates Makefiles recipes defining DLL_EXPORT
. At first sight it seems quite legitimate to define DLL_EXPORT
, since the goal is to build a library.
In practice though, DLL_EXPORT
isn't referenced anywhere in SystemC's code so it's not very clear what the intention is (and as a matter of fact, SystemC's cmake
-based flow doesn't define it). If I trust comments in configure
though, it is some kind of hack that has a good reason to be.
Next, as SystemC source files get compiled, mingw-w64-libraries/winpthreads/include/pthread.h
is included at some point (via sc_host_mutex.h
and ).
At this point the compiler sees the below:
QUESTION
I'm trying to see how to embed Lua 5.1 into a C file in order to create a minimum reproducible example to try and solve another problem (thread here). I was following this simple tutorial but as soon as the debugger gets to lua_State *L = luaL_newstate();
, it gives me the error the prelaunch task 'C/C++:gcc.exe build active file' terminated with exit code -1.
How do I fix this error? I tried searching for answers but couldn't find anything that matched this situation and I don't know if embedding Lua in C++ is different from C. I'm using VSCode on Windows 10.
This is the code I tried in my C file:
...ANSWER
Answered 2021-Oct-06 at 05:36The problem turned out to be lack of linker information. It was hard to find info specific to using GCC with VSCode on Windows to embed Lua in C, and for a while I wasn't sure where those commands were supposed to go. Having tasks.json automatically created by the debugger didn't include this info. I had to type in "-LC:/MyLibs/lua5.1",
, "-IC:/MyLibs/lua5.1/include",
, and "-llua5.1",
within the brackets of the "args"
section. This is what the file looks like now (I've moved minGW and MyLibs outside of "Program Files" since first posting to see if the spaces in the folder name were making GCC/GDB act up):
QUESTION
I'm using make_fcontext
and jump_fcontext
from boost context to achieve userspace context switching. I use another library to catch and report application crashes. I found these 2 does not work together on Windows.
The crash library calls SetUnhandledExceptionFilter
during startup time to setup an exception handler to catch unhandled exceptions from the process. It then processes the exception record for crash reporting. This works most of the time and there is no other exception handling in my application.
However, when a crash (hardware/software exception) happened in a thread running on a boost context, I found that the set exception handler was not triggered. Seems like instead the kernel launched WerFault.exe
which generates a minidump under C:\Windows\System32\config\systemprofile\AppData\Local\CrashDumps
.
It seems like running on a boost context affects the kernel's ability to find or use the superseded global unhandled exception filter. When running on a boost context, the bottom of the stack looks like:
...ANSWER
Answered 2021-Sep-28 at 09:20I think this is a limitation of default context, which does not do everything that Windows does, which is not likely to be fixed for you. If you want full support of Windows stuff, you probably should switch to Windows Fibers. Looks like Boost Context supports them.
The drawback of using Windows Fiber could be worse performance.
If this matters for you, you probably have to use fast context, and have your own SEH frame:
QUESTION
I've been scratching my head on a very odd issue. See sample code below:
test_c.c
...ANSWER
Answered 2021-Aug-23 at 00:56Am I doing something wrong ? Is there a way to fix this ?
Yes. %s
is for printing char*
. To print wchar_t*
, use %ls
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install seh
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page