由买买提看人间百态

topics

全部话题 - 话题: wno
(共0页)
s*****w
发帖数: 1527
1
for the following, why some -D are in front of some -I ?
does that mean these defines are only for the include path following it ?
[somehow@bsd ~/bsd_src/lib/libc]$ make
Warning: Object directory not changed from original
/usr/home/somehow/bsd_src/lib/libc
cc -O2 -pipe -I/usr/home/somehow/bsd_src/lib/libc/include -
I/usr/home/somhhow/bsd_src/lib/libc/../../include -
I/usr/home/somehow/bsd_src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -
I/usr/home/somehow/bsd_src/lib/libc/../../contrib/gdtoa ... 阅读全帖
k*****l
发帖数: 177
2
我用的是
g++ -g -O3 -Wall -Wno-sign-compare -Wno-deprecated -fomit-frame-pointer -
ffast-math
c*******y
发帖数: 1630
3
来自主题: Programming版 - 请教一个makefile 小问题
也许我makefile写的不对,不过我是从sample修改过来的。上stackoverflow搜了一下。
CXX=g++
CXXFLAGS=-DIB_USE_STD_STRING -w -Wno-switch -Wno-sign-compare
ROOT_DIR=c:/Jts/TWSAPI/source
BASE_SRC_DIR=${ROOT_DIR}/PosixClient/src
INCLUDES=-I${ROOT_DIR}/CppClient/Shared -I${BASE_SRC_DIR}
TARGET=eu.exe
$(TARGET):
$(CXX) $(CXXFLAGS) $(INCLUDES) -o EClientSocketBase.o -c $(BASE_SRC_DIR)
/EClientSocketBase.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -o EPosixClientSocket.o -c $(BASE_SRC_DIR
)/EPosixClientSocket.cpp
$(CXX) $(CXXFLAGS... 阅读全帖
c*******y
发帖数: 1630
4
来自主题: Programming版 - 请教一个makefile 小问题
c:Tradingeu-ats>g++ --version
g++ (GCC) 4.8.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
makefile:
CXX=g++
CXXFLAGS=-DIB_USE_STD_STRING -w -Wno-switch -Wno-sign-compare -O2
ROOT_DIR=c:/Jts/TWSAPI/source
BASE_SRC_DIR=${ROOT_DIR}/PosixClient/src
INCLUDES=-I${ROOT_DIR}/CppClient/Shared -I${BASE_SRC_DIR}
TARGET=fx.exe
$(TARGET):
$(CXX) $(CX... 阅读全帖
S*A
发帖数: 7142
5
来自主题: Programming版 - 请教一个makefile 小问题
我改了一下, 这样子应该是比较接近的了吧。而且中间节点
都用隐含规则建立依赖关系了。完全没有测试,因为我不用
cygwin
==================================
CXX=g++
BASE_SRC_DIR=CppClient/Shared
INCLUDES=-I$(BASE_SRC_DIR) -I.
CXXFLAGS=-DIB_USE_STD_STRING -w -Wno-switch -Wno-sign-compare $(INCLUDES)
LIBS = -lws2_32
TARGET=eu.exe
OBJS= $(addprefix $(BASE_SRC_DIR), EClientSocketBase.o EPosixClientSocket.o)
\
PosixTestClient.o Main.o
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
clean:
rm -f $(TARGET) $(OBJS)
g***i
发帖数: 90
6
here some info about g77 warnings:
Warnings are diagnostic messages that report constructions which are
not inherently erroneous but which are risky or suggest there might
have been an error.
You can request many specific warnings with options beginning `-W',
for example `-Wimplicit' to request warnings on implicit declarations.
Each of these specific warning options also has a negative form
beginning `-Wno-' to turn off warnings; for example, `-Wno-implicit'.
This manual lists only one of t
i**********e
发帖数: 1145
7
来自主题: JobHunting版 - Leetcode OJ的C++编译参数是什么?
是 g++ 4.7.2. 有遇到什么问题吗?
参数是:
-std=c++0x -Wfatal-errors -Wno-deprecated -ftemplate-depth-128

发帖数: 1
8
来自主题: JobHunting版 - 放c code求老师傅指教
update:
谢谢板上各位老师傅,现在我知道是我的问题了,“without using a second string
”我没有理解好,感谢大家赐教,我继续努力!
刚刚解决身份问题,男,找工作和leetcode都有一段时间了,最近碰到这家公司的一个
面试
http://stackoverflow.com/jobs/115265/software-engineer-networking-schweitzer-engineering?searchTerm=SEL&offset=3&sort=s
问的问题和glassdoor一样,所以我也准备了一下那个unions的答案和例子,以前没用
这个:
Interview Questions
1) What is in the software requirements?
2) What is mutex and semaphore?
3) When to use unions?
4) What are the pros and cons of using assembly in embedded systems?
5) Programming t... 阅读全帖
ET
发帖数: 10701
9
来自主题: Golf版 - another (half) round golf
don't want to deny. I guess I am over-reacted. Sorry.
Basically, it's not about confidence . I shot a round of 70's again, then
low 70's happened. if it wno't happen forever, so I'll say i am at another
level.
golf is a difficult game. nobody in the planet can claim that he can shot
the same score every single day.
handicap is calcuated the best 8 rounds of 20 rounds score.
just talking about the last round score, I was not that bad. No warmup, no
playing at the course for months, that course' g
d******i
发帖数: 7160
10
来自主题: TVChinese版 - PPS限制升级了?
多谢指点。
俺在pogoplug的debian下按照 https://github.com/joyent/node/wiki/Installing-
Node.js-via-package-manager 的debian编译指示去做,
结果最后一步出错了:
root@debian:~/nodejs/node-v0.10.1# make install
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/nodejs/node-v0.10.1/out'
g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_
ARM' '-DUSE_EABI_HARDFLOAT=0' -I../deps/v8/src -Wall -Wextra -Wno-unused-
parameter -pthread -fno-strict-aliasing -O2 -fno-strict-aliasing -fno-tree-
v... 阅读全帖
d******i
发帖数: 7160
11
来自主题: TVChinese版 - PPS限制升级了?
下面这段是从 https://github.com/joyent/node/wiki/Installing-Node.js-via-
package-manager 抄来的哈:
Debian
Node.js is available in official repo for Debian Sid(unstable).
For Debian Squeeze, your best bet is to compile node by yourself (as root):
apt-get install python g++ make
mkdir ~/nodejs && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`
./configure
make install
我最后一步"make install"没过。
按你的说法,./configure以后我试着make,结果一样的错误:
root@debian:~/nodejs/no... 阅读全帖
d******i
发帖数: 7160
12
来自主题: TVChinese版 - PPS限制升级了?
试了,不灵啊。
root@debian:~/nodejs/node-v0.10.1# make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/nodejs/node-v0.10.1/out'
g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_
ARM' '-DUSE_EABI_HARDFLOAT=0' -I../deps/v8/src -Wall -Wextra -Wno-unused-
parameter -pthread -fno-strict-aliasing -O2 -fno-strict-aliasing -fno-tree-
vrp -fno-tree-sink -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF /root/
nodejs/node-v0.10.1/out/Release/.deps//root/nodejs/node... 阅读全帖
d**********o
发帖数: 1321
13
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
d**********o
发帖数: 1321
14
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
S***w
发帖数: 1014
15
两台机器,我都用g++编译的,不过是openmpi wrapper 的mpic++,
mac 下,编译参数是 -O -MMD -MG
链接参数是 -O
linux服务器下,编译参数为 -O2 -funroll-loops -fstrict-aliasing -Wall -W -
Wno-uninitialized
连接参数是 -O
p**e
发帖数: 335
16
来自主题: Programming版 - C++ template question
template
class test
{

test();
~test();
friend bool operator== (const test &p1, const test &p2); //line 7
};
I will get:
test.h:7: warning: friend declaration 'bool operator==(const test&, const
test&)' declares a
non-template function
test.h:7: warning: (if this is not what you intended, make sure the function
template has already been
declared and add <> after the function name here) -Wno-non-template-friend
disables this warning
template
class t
m******g
发帖数: 91
17
来自主题: Unix版 - 问题:gentoo的gcc编译的CFLAGS
看gentoo网上提供的说明,需要对/etc/make.conf进行配置,
让gcc针对特定的CPU进行编译优化。
好的。我的机器是pentium 233MHz MMX,
因此我改动/etc/make.conf为:
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=pentium-mmx -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
可是在执行kernel编译时,出现的却是:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r5/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
是针对i
j**********i
发帖数: 3758
18
http://en.wikipedia.org/wiki/Pulse_oximetry
http://www.mitbbs.com/article_t/Sociology/31062907.html
Proponowany projekt jest dla warunków zdrowotnych monitoringu
Osób starszych, głównie w domu opieki ośrodkach. Co staramy
zrobić to, zmieniając sposób współczesnej technologii Pulse
_oximetry,
który sprawdza puls i SO2 danych pacjentów w ER sali szpitala.
Proponujemy, aby puls i SO2 dane są wysyłane do telefonów komó
rkowych graficznych
z członków rodziny za... 阅读全帖
(共0页)