gnu

MATLAB system does not run applications

匿名 (未验证) 提交于 2019-12-03 02:43:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to interact with SUMO via MATLAB according to script here . At line 43, the MATLAB command is system(['sumo-gui -c ' '"' scenarioPath '"' ' --remote-port 8873 --start&']); Since I am using Ubuntu 16.04.1 LTS , I fixed scenarioPath . Now, this line is equal to system('sumo-gui -c "/path/to/SUMO/docs/tutorial/traci_tls/data/cross.sumocfg" --remote-port 8873 --start&'); When I run it nothing does happen ( ans=0 ) while when I test the command in bash command line the sumo-gui application starts. I believe the problem is even further

How to fix: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I'm now desperate in finding a fix for this. I'm compiling a shared library .so in Ubuntu 32 bit (Have tried doing it under Debian and Ubuntu 64 bit, but none worked either) I keep getting: /usr/lib/libstdc++.so.6: version ``GLIBCXX_3.4.15' not found every time I try to load my plugin. Here's how I'm getting this error: Install latest Ubuntu 32 bit sudo apt-get install build-essential Compile & load my plugin (.so) Here are some links which I found and tried, but none worked for me: (My old question: I somehow got it fixed a few days

gcc -O2 vs. without causes error

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When compiling file containing open("FILENAME", O_RDONLY); without -O2 flag everything is fine. But when -O2 is turned on I get: /usr/include/x86_64-linux-gnu/bits/fcntl2.h: In function ‘open’: /usr/include/x86_64-linux-gnu/bits/fcntl2.h:44:7: error: invalid use of ‘__builtin_va_arg_pack_len ()’ /usr/include/x86_64-linux-gnu/bits/fcntl2.h:45:26: error: call to ‘__open_too_many_args’ declared with attribute error: open can be called either with 2 or 3 arguments, not more /usr/include/x86_64-linux-gnu/bits/fcntl2.h:42:1: error: invalid use of

In gnu make, can the prerequisites in a static pattern rule have different suffixes

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Our make file compiles .c source files with a static pattern rule like this: OBJECTS = foo.o bar.o baz.o $(OBJECTS): %.o: %.c $(CC) $< $(C_OPTIONS) -c -o $@ I need to change one of the .c files to an Objective-C .m file. Invoking the compiler is the same for both source types, so I'd like to use the same rule and just tweak it to be more flexible. I'd rather not change the OPTIONS variable because it's also used for the linking step, etc. Is there a way to make the rule above more flexible to accommodate both .c and .m files? Thanks 回答1: We

解决错误 undefined reference to symbol '__cxa_throw_bad_array_new_length@@CXXABI_1.3.8'

妖精的绣舞 提交于 2019-12-03 02:28:29
1. 错误信息 在Makefile里,定义CC为"aarch64-linux-gnu-g++ --sysroot=$(MPSOC_ROOTFS)",编译test.cpp,没有错误。如果使用environment-setup-aarch64-xilinx-linux里的设置,在Makefile里不定义CC,编译test.cpp出现下列错误。 hankf@xszgs4:/proj/hankf/zcu106/v183/egl$ make aarch64-xilinx-linux-gcc --sysroot=/opt/petalinux/2018.3/zcu106bspsdk/sysroots/aarch64-xilinx-linux -c test.cpp -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -O2 -Wall -fpic -fpermissive -I =/usr/include -I =/usr/include/drm -I =/usr/include/libdrm -I =/usr/src/debug/libdrm/2.4.83-r0/libdrm-2.4.83 -I =/usr/src/debug/libdrm/2.4.83-r0/libdrm-2.4.83 -I =/usr/src/debug/libdrm

Error in makefile: multiple definition of _start

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have tried to write a makefile: CC = g++ LD = ld CFLAGS = -Wall -std=c++0x -O3 LDFLAGS = -lgsl -lgslcblas -lpthread SOURCES = main.cpp OBJECTS = $(SOURCES:.cpp=.o) EXECUTABLES = main all: $(SOURCES) $(EXECUTABLES) $(EXECUTABLES): $(OBJECTS) $(CC) $(OBJECTS) -o $@ $^ $(LDFLAGS) .cpp.o: $(CC) $(CFLAGS) $< -o $@ .PHONY: clean clean: rm -f *~ *.o main But when I am executing this code, I get the following errors: g++ -Wall -std=c++0x -O3 main.cpp -o main.o main.cpp: In function ‘int main()’: main.cpp:63:12: warning: unused variable ‘order’ [

What is the difference between /lib/i386-linux-gnu/libc.so.6, /lib/x86_64-linux-gnu/libc.so.6 and /usr/lib/x86_64-linux-gnu/libc.so?

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed Matlab in my Linux Mint 14 Nadia (a uname -a shows: Linux Ideapad-Z570 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux) and when calling it from the command line I would get a: "/lib64/libc.so not found". I followed the help on mathworks by making a link in /lib64 as: ln -s /lib/x86_64-linux-gnu/libc.so.6 . That solved the issue. Now, if I do a locate of this library I get: locate "libc.so" /lib/i386-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so I

How to get POSIX strerror_r instead of GNU version?

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How do I get the POSIX strerror_r instead of GNU version? I'm compiling with g++ on Ubuntu 8.04 with glibc version 2.7 ( based on what's in ). Edit On the above man page it says: Feature Test Macro Requirements for glibc (see feature_test_macros(7)): The XSI-compliant version of strerror_r() is provided if: (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE Otherwise, the GNU-specific version is provided. It then says in feature_test_macros(7) : If no feature test macros are explicitly defined, then the following feature

Warning “Use of GNU statement expression extension”

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have this Objective-C istruction: NSRange range = NSMakeRange(i, MIN(a, b)); where a and b are NSUInteger s. MIN() is the macro defined in the standard NSObjCRuntime.h header file as: #if !defined(MIN) #define MIN(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; }) #endif During the compilation, the LLVM Compiler 4.1 highlights my instruction showing the warning: "Use of GNU statement expression extension". What does this mean? Is it my fault? If yes, how can I fix it? If not, how can I remove the compiler

QSqlDatabase: QMYSQL driver not loaded on Ubuntu 15.04 64bits

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In Ubuntu 15.04 64 bits I installed Qt5.6 (online installer) and while trying to move my development environment from Windows 7 to Linux I faced the following: SqlDatabase: QMYSQL driver not loaded Following this , I managed to find ~/Qt/5.6/gcc_64/plugins/sqldrivers/libqsqlmysql.so and then: $ ldd libqsqlmysql.so linux-vdso.so.1 => (0x00007ffffd571000) libmysqlclient_r.so.16 => not found libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe94ef24000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fe94ecec000) libnsl.so.1 =>