I have searched everywhere online and no solutions work I'm getting soap_rand not defined along with a lot of other functions as well. Any ideas? I've tried using VS2013 C++ compiler and MingW32.
My latest attempt looked like this:
LDFLAGS+=" -L/c/openssl/ CXXFLAGS+=" -I/c/openssl/include/" configure
Then I try mingw32-make and get the error:
C:\Users\sfaber\AppData\Local\Temp\ccMoNxnb.o:httpda.c(.text+0x1a84): undefined reference to 'soap_rand'
Related
I have problems building an executable file for a simple disease-transmission model implemented in C++, using cmake under macOS Monterey (v12.6.1). When I build the executable file, I obtain the following error when I try running it:
dyld[5281]: symbol not found in flat namespace (_cblas_caxpy) Abort trap: 6
The problem persists when I try to use XCode (v14.0.1) instead, resulting in the same error message.
Interestingly, my friend is able to build (& run) the executable file under macOS v10.15.7 without any problems.
Does anybody know what is going on here and how this issue can be resolved? The C++ project is publicly available on GitHub: https://github.com/AnnaMariaL/DengueSim
Any help would be very much appreciated.
Thanks!
Anna
tried: build an executable file with cmake, and Xcode under MacOS v12.16.1
expected: executable file
the program runs fine when launched under Xcode itself, but if I try to run the built executable from Xcode on the command line, that fails with the same error as for the CMake executable. So Xcode itself is, somehow, magically able to get this linker issue to resolve.
Your title/post is very confusing, however the issue isn't with cmake. It's with your cblas library and/or your linker. Look at the bug closely:
dyld[5281]: symbol not found in flat namespace (_cblas_caxpy) Abort trap: 6
Your linker is telling you that it can't find a function (symbol) in the given namespace. This is either due to the fact that your linker doesn't know where to find the correct library or you are linking against a wrong version of the library that doesn't have the symbols. The other issues might be related to how the library was built and with what it was built (architecture, compiler, etc...). This we can't answer because we don't have enough information to know for sure.
On a Windows system, currently I'm trying a waf configure on a directory of code, and it spits out the error "could not configure a C compiler."
Now, I'm 100% certain that I have gcc and g++ installed and in my path because when I type gcc --version, it gives me the current version information. (I'm using mingw and the gcc/g++ are in the /bin subdirectory).
In the author's code directory there is a wscript file which looks like
C_COMPILER = 'gcc-4.7'
CPLUSPLUS_COMPILER = 'g++-4.7'
Now, I have tried changing the strings to simply gcc as well as gcc-4.8.1 (since my current version is 4.8.1), but it still says could not configure compiler.
I tried reading one solution on this same site that looks related, but the solution was on ubuntu and trying to work through those commands didn't help
could not configure a c compiler
I'm at the end of my common sense here after making sure I have gcc and g++ installed, trying different strings in the wscript file trying to get it to recognize I have them installed, and could use some help, thanks.
Edit: I've now tried simply deleting the lines in the wscript file where it changes the compiler name, and suddenly waf configure goes through, but the waf build fails saying things like it can't find really basic things like include vector. The output says it's defaulting to msvs (microsoft visual studio) whereas the author says gcc/g++ is needed; maybe this is the issue but how do I get waf configure/build to use g++/gcc as default?
I'm currently taking up a course in COBOL and recently I have only been using an online compiler. When I decided to install the OpenCOBOL IDE. I keep getting the error "cobc: Invalid argument" whenever i try to compile. I tried multiple re-installs still to no avail. I also tried installing just the compiler itself and compiling my files using cmd, but still it gives that error. Any help? I really need to get it working.
OS: Windows 8.1 64-bit
You need an "-x" option to tell the compiler build an executable with the same name as the program source (but without the .cbl or a "-o progname" option to tell the compile to produce an executable named progname.
I'm trying to get input from an xbox controller, I went to this page:
http://www.codeproject.com/Articles/26949/Xbox-360-Controller-Input-in-C-with-XInput
and I'm just test running his source, good thing I did because it found an error:
C:\Users\me;)\Desktop\XBOX360Test\XBOX360Test\CXBOXController.h|9|fatal error: Xinput.h: No such file or directory|
Can I don't know what the issue is, doesn't Xinput ship with windows?
I'm late I know, but I get the same error.
Opening the project in Visual Studio works fine, but compiling with gcc doesn't. Seems like the compiler of VS knows more than gcc and you need to compile it with that one. Here's how:
http://msdn.microsoft.com/en-us/library/ms235639(v=vs.80).aspx
So, I was developing an awesome project running Linux and I need to make the port on Windows. Problem is, the libyaml is part of my dependencies, and I need to compile it for Windows.
So I got my cygwin environment running, I ran ./configure and make, and everything went well : the library was built, I got the .a file.
Except that the makefile never ended because it couldn't build the examples : turns out some symbols are missing from the library :
undefined reference to `_imp__yaml_parser_initialize'
undefined reference to `_imp__yaml_parser_set_input_file'
undefined reference to `_imp__yaml_parser_scan'
undefined reference to `_imp__yaml_token_delete'
undefined reference to `_imp__yaml_parser_delete'
So of course, wondering how could this possibly be true, I went on searching said symbols, and I, in fact, found them in the binary, although the symbol is a tiny bit different as you can see :
$ nm src/.libs/libyaml.a | grep parser_set_input_file
000005a8 T _yaml_parser_set_input_file
So, this is usually how function name are presented when I compile a dinamicaly loadable library. What buzzes me is, WHY can't the linker find these functions ? Where does this imp come from ?
And what can I do so that my programs can link properly to the libyaml ? Everything else is working just as it should except for these functions.
Will you be the one to save me from this devilish compilo-linking stuff ?
I thank thee for your attention.
EDIT: I've been working on this problem for a few more hours now.
So, apparently it MAY come from mingw : the gcc from cygwin doesn't have any issue in compiling the examples.
However the errors remain, even if I try to do so with the cygwin's gcc. I'm starting to get sick of this retarded OS. Everytime I'm developing on Windows I spend more time solving problems than actually working. Why does it always have to be such a pain ??
Isn't there an EASY way to explain the linker not to search for mangled name of those functions ?
EDIT: I found this :
http://cygwin.com/ml/cygwin/2001-04/msg00942.html
Seems like a similar problem someone was having with ncurses. Though I haven't been able to make anything out of this.
Old thread, but the answer is still unclear. The following works for version 0.1.5:
./configure CFLAGS="-DYAML_DECLARE_STATIC" --enable-static --disable-shared