y***d 发帖数: 2330 | 1 先用 system->pref->monitors 来试试,不行的话,用 xrandr:
先修改 /etc/X11/xorg.conf
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Virtual 3600 1920
Depth 24
EndSubSection
EndSection
重启后,
xrandr --output CRT1 --off;
xrandr --output DFP2 --off;
xrandr --output CRT1 --auto --primary;
xrandr --output DFP2 --auto --right-of CRT1 |
|
h**********y 发帖数: 1293 | 2 编译和link用了 m32和 -m elf-i386
编译时候没有问题
link时候出现
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-
linux-gnu/4.3.3/../../../../lib/crt1.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-
linux-gnu/4.3.3/../../../../lib/crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-
linux-gnu/4.3.3/crtbegin.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 a |
|
x******a 发帖数: 6336 | 3 装了一个quantlib在mac os x上,然后运行那个example,结果得到下面一堆。请教应
该link或者编译?
谢谢!
instruction在这里:
http://quantlib.org/install/macosx.shtml
run example
g++ -I/opt/local/include/ -I/opt/local/include/boost BermudanSwaption.cpp
-o bermudanswaption -L/opt/local/lib/ -lQuantLib
以后的error:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
"vtable for boost::unit_test::unit_test_log_t", referenced from:
boost::unit_test::unit_test_log_t::unit_test_log_t()in ccL... 阅读全帖 |
|
x******a 发帖数: 6336 | 4 按照quantlib.org上在mac上安装以后,测试一个命令行:
g++ -I/opt/local/include/ -I/opt/local/include/boost BermudanSwaption.cpp \
-o bermudanswaption -L/opt/local/lib/ -lQuantLib
得到i686-apple-darwin10-g++-4.2.1: BermudanSwaption.cpp: No such file or
directory。
然后到/opt/local/include/boost目录下,再次运行上面的命令行,显示下面的内容
g++ -I /opt/local/include/ -I /opt/local/include/boost BermudanSwaption.cpp
-o bermudanoption -
L/opt/local/lib/ -lQuantLib1.0.1
ld: library not found for -lQuantLib1.0.1
collect2: ld returned 1 exit statu... 阅读全帖 |
|