c********e 发帖数: 383 | 1
lib, for windows, lib is requried for both dynamic and static lib.
specify the lib file to link with.... |
|
g****c 发帖数: 299 | 2 # [Q: What does the following do? ]
link object file with lib if it exists
$(COMMAND): $(OBJS) $(MAKEFILE)
$(CC) -o $(COMMAND) $(OBJS) $(LDFLAGS) $(LIBS)
# [Q: What is LIBS? ]
I don't see LIBS defined
# [Q: What does the following do? ]
sum_up_down.o : sum_up_down.cpp $(MAKEFILE)
$(CC) $(CFLAGS) $(WARNFLAGS) -c sum_up_down.cpp -o sum_up_down.o
compile to object file
following |
|
k*o 发帖数: 46 | 3 if you libs are in the same dir, you can add *.lib instead of a.lib, b.lib
etc.
对 |
|
l*********i 发帖数: 483 | 4 在Linux底下的一个数值计算的C++ code,Makefile是由autoconf生成的,
如果我想要生成一个完全不用动态库的可执行文件,应该给./configure加
什么参数呢?印象里如果是自己手动写的Makefile的话,只要加上-static
这个参数就可以了,但是不知道用autoconf的时候应该怎么弄。我试着用
"./configure --disable-shared --enable-static",但是用ldd看身成的
可执行文件,还是输出如下的结果:
$ ldd simple-snr
libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00002b5d36624000)
libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x00002b5d36a0b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b5d36c3b000)
libm.so.6 => /lib/libm |
|
r****t 发帖数: 10904 | 5 你到底看了 Makefile 没有,开头有很多你要改的东西。
/usr/local/lib 下面要有这些列出来的库,/usr/local/include 下面要有这些库的头
文件。没有的话或者按位置装好,或者装好再改这几行。
初用 make, 用 make -d 然后看看出错信息,理解不了贴上来问。你现在的问题是 gcc 在你给的 -I 选项里面列的目录里面找不到 GSL 的头文件,你就给个含有头文件的 -I path 就可以过这一步了。
# The path to the external libraries: metis, taucs, lapack, blas and zlib
LEXTPREFIX = /usr/local
LEXTLIBS = -L$(LEXTPREFIX)/lib
IEXTLIBS = -I$(LEXTPREFIX)/include
这还没列 GSL, 你要是 GSL 装在
/home/me/GSL
上面有两行你要改成
LEXTLIBS = -L$(LEXTPREFIX)/lib -L/home/me/GSL/lib
IEXTLIBS = -I$(LEXTP |
|
I*******e 发帖数: 1879 | 6 ☆─────────────────────────────────────☆
ludovic (荷叶粉蒸肉) 于 (Fri Mar 13 13:59:18 2009) 提到:
我的程序需要动态的加载一些库。
需求是这样的,程序会扫描一些目录,如果发现存在某个特定的 .py文件,就要加载这
个.py中的一个库,然后运行代码。然后,需要卸载这个库,再继续搜索下一个目录。
具体大概是这么个形式:
for dir in dirList:
if os.path.isfile(dir + "/lib.py"):
# Load the lib
#Run some code to generate output
# unload the lib(as all these libs have the same name)
请问这里的动态加载卸载怎么解决?
加载部分,import XXX中的XXX似乎不能含有路径(路径只能从PYTHONPAT |
|
p***o 发帖数: 1252 | 7 #pragma comment (lib, "opengl32.lib")
#pragma comment (lib, "glu32.lib") |
|
c******s 发帖数: 270 | 8 要被继承的类(DllObject)定义在Project A, 用DLL导出. 而子类(MyClass)定义在
Project B.
在Project A中, 我定义了宏MYDLL_BUILD.
// Config_Project_A.h
#if !defined(MYDLL_BUILD)
# pragma comment(lib, "myDll.lib")
#endif
#if defined(MYDLL_BUILD)
# define MYDLL_API __declspec(dllexport)
#else
# define MYDLL_API __declspec(dllimport)
#endif
// DllObject.h
class MYDLL_API DllObject
{
public:
virtual ~DllObject() {}
protected:
DllObject() { m_count = 3; }
priv... 阅读全帖 |
|
h**t 发帖数: 1678 | 9 试着compile 最简单的helloworld code 怎么都不行。
两种方法:用mingw64: g++ helloworld.cpp -o helloworld -mms-bitfields -IC:/
GTK.....-lintl
error is like:
c:/ibi/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-
w64-mi
ngw32/bin/ld.exe: skipping incompatible C:/GTK/lib/libglib-2.0.dll.a when
search
ing for -lglib-2.0
There are many this kind of errors
在MSVC里 把c:\GTK\include 和lib都加进去;enviroment viriables 也设定GTK_BASE
, INCLUDE, LIB related to c:\GTK... 还是找不到gtk.h: nosuch directory ...
THanks very m... 阅读全帖 |
|
e****d 发帖数: 333 | 10 very good say ar!
"核心最没用了", exactly!!!
what makes money, what is 核心.
my company has a "core lib" and a large part was written by C/C++, but no
one need to touch it often, it was well written and done forever!!!
the real cash flow of the business model is not directly from that "core lib
".
our CTO/CEO/CFO even don't know what is that "core lib".
I'm maintaining the "core lib", i think i'm the "core". But all others think
i'm the support, the lowest level.
hahaha. |
|
z****e 发帖数: 54598 | 11 他们不影响扩散就代表所有人都应该用unity吗?
你拿那些做3d游戏的公司跟一般p民做app去比?
买license的钱你给出吗?3d游戏一个美工多少钱你知道不?
美工要价都经常上万,这个钱你来出?
web只是一个简单的展示平台
随便抓个语言都可以很容易写出web来
什么公司都有web,但是并不代表只有web
web这么多年下来,变化慢是出了名的
html5到现在还没有完全搞定,你看html4都什么时候的事了
难道没觉得web server那一百多个都在做同一件事?
知道为什么人家说前端竞争激烈不?
我用dart,我可以很轻松地控制html各个控件
当然js也能做到,但是我不喜欢js那种体验
太糟糕了,你愿意用,你用去,呵呵
我太喜欢.一下就提示我各种方法的感觉了
我是人,不是机器,而且这样之后,我不需要任何lib
我都有办法很快制造出lib来,我干嘛还需要学习其他libs的使用呢?
不学就能用不是更好?我最近的一个项目,压根就没用什么polym那个啥东东
直接dart裸写,就用了google map api,其他一个不用,有啥难的?
一个人全搞定了
所以当裸写都很容易的时候,学习其他... 阅读全帖 |
|
t**********s 发帖数: 930 | 12 只找到了一个 catalina.properties:
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... 阅读全帖 |
|
d*******r 发帖数: 3299 | 13 AngularJS 做个啥简单的事儿, 都是费老劲了...
有很多现成的 JS lib, 就是没有封装好,测试好的 AngularJS directive.
然后, 你就折腾吧... 光是测试不同的 AngularJS directives for one old lib, 就
够折腾半天了, 也可能折腾完了后, 发觉都很烂, 都不如裸用原生的 lib
我觉得 AngularJS 适合的 project 是, 要用哪些 lib/模块 都已经被 architect 定
好, 测试过的, 一堆人协作的 project. 如果你自己搭建东西, 自己做 architect,
AngularJS 就能折腾死你. |
|
c******n 发帖数: 16666 | 14 嗯 vue第三方支持还是太少
优点是 支持amd的js lib大部分可以import了直接用
ng1的第三方有个问题是 很多属于优质js lib的ng中间件 两头不讨好 哪边更新一下
这个中间件也要跟着改 这事儿轮到我们最终用户就很不爽了
出了问题 人lib的说更新到新版就行 然后中间件卡着
ng1-> vue基本是无缝衔接 看看文档 跟着写几个例子 几个下午就好了
我当时就试了下 然后觉得与其去学框架自己dsl 还不如去学lib的dsl |
|
f****y 发帖数: 70 | 15 运行perl script出这样地错误:
Can't locate Date/Simple.pm in @INC (@INC contains: /home/oracle/proj/script
/lib
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site
_pe
rl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl
/usr
/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /us
r/pe
rl5/vendor_perl .) at ./script/process_miep.pl line 199.
BEGIN failed--compilation aborted at ./script/process_miep.pl line 199.
script有这样几句
...
use lib |
|
y****u 发帖数: 57 | 16 Save below into file like install_kentsrc.sh, chmod to 755, and run it.
Tested under Linux Ubuntu 10.10.
======
#!/bin/bash
#run 'uname -m' to check your MACHTYPE
export MACHTYPE=x86_64
#run 'mysql_config --include' to check your MYSQLINC
export MYSQLINC='/usr/include/mysql'
#run 'mysql_config --libs' to check your MYSQLLIBS
export MYSQLLIBS='-Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -
lmysqlclient'
# download or update kent source package.
SOFTDIR=${HOME}/tests
cd $SOFTDIR
if [ ! -d k... 阅读全帖 |
|
s**********t 发帖数: 680 | 17 申绿卡急用Paper求助!双黄包答谢!
各位兄弟姐妹如有CNKI或万方的权限请帮我下载!
我的Email是 [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
谢谢!
1.
影响阻塞性黄疸预后的多因素分析
来 源: 肝胆胰外科杂志 1997年03期
CNKI链接:http://lib.cnki.net/c... 阅读全帖 |
|
h***o 发帖数: 539 | 18 你这个gcc太土了吧。hoho
hanzo@scimd: pts/0: 26 files 37Mb-> gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs
Configured with: /var/tmp/portage/gcc-3.3.3-r3/work/gcc-3.3.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 |
|
S******y 发帖数: 1123 | 19 I have installed numpy1.3 to python 2.6.2 on windows XP.
But I keep getting the following error when I try to call numpy from IDLE -
>>>
>>> import numpy
Traceback (most recent call last):
File "", line 1, in
import numpy
File "C:\Python26\lib\site-packages\numpy\__init__.py", line 130, in <
module>
import add_newdocs
File "C:\Python26\lib\site-packages\numpy\add_newdocs.py", line 9, in <
module>
from lib import add_newdoc
File "C:\Python26\lib\site-pack |
|
S******y 发帖数: 1123 | 20 I have installed numpy1.3 to python 2.6.2 on windows XP.
But I keep getting the following error when I try to call numpy from IDLE -
>>>
>>> import numpy
Traceback (most recent call last):
File "", line 1, in
import numpy
File "C:\Python26\lib\site-packages\numpy\__init__.py", line 130, in <
module>
import add_newdocs
File "C:\Python26\lib\site-packages\numpy\add_newdocs.py", line 9, in <
module>
from lib import add_newdoc
File "C:\Python26\lib\site-pack |
|
d******e 发帖数: 7844 | 21 我写了一个Package A,中间需要调用已有的Package B。
我在网上查到一个方法是在package的R的子目录里加入zzz.R这个文件。
里面的内容如下
.First.lib <- function(lib,pkg){
library.dynam("A",pkg,lib)
require(B)
}
但在install的时候
** testing if installed package can be loaded
Error in library.dynam("A", pkg, lib) :
shared library 'A' not found
ERROR: loading failed |
|
A*******s 发帖数: 3942 | 22 %macro add_prefix(lib=, table=, prefix=);
proc sql noprint;
select cats(name, '=', substr(cats(upcase("&prefix"), "_", name), 1, 32)
) into: rename_list separated by " "
from dictionary.columns
where libname=upcase("&lib") and memname=upcase("&table")
;
quit;
data &lib..prfx_&table;
set &lib..&table;
rename &rename_list ;
run;
%mend; |
|
m****r 发帖数: 202 | 23 %macro add_suffix(lib=, table=, suffix=);
proc sql noprint;
select cats(name, '=',name, "_", substr(cats(upcase("&suffix")), 1, 32)
) into: rename_list separated by " "
from dictionary.columns
where libname=upcase("&lib") and memname=upcase("&table")
;
quit;
data &lib..prfx_&table;
set &lib..&table;
rename &rename_list ;
run;
%mend;
It gives me what I expect. Thanks all. |
|
k*******a 发帖数: 772 | 24 试试这个macro, 他把你所有数值型变量转化为对应的format,如果这个obs有至少一个'NA',
那么就设
置flag=1,否者flag=0
%macro flag(lib=, data=, out=);
proc sql;
select name, format, count(*) into
:var separated by ' ', :fmt separated by ' ', :n
from sashelp.vcolumn
where upcase(libname)=upcase("&lib") and
upcase(memname)=upcase("&data") and
type='num' and
format ne '';
quit;
data &out;
set &lib..&data;
flag=0;
%do i=1 %to &n;
if put(%scan(&var,&i), %scan(&fmt, &i, "' '")) = 'NA'
... 阅读全帖 |
|
f******y 发帖数: 2971 | 25 I got problem when trying to load gsl library:
dyn.load("/usr/local/lib/libgsl.so")
Error in dyn.load("/usr/local/lib/libgsl.so") :
unable to load shared object '/usr/local/lib/libgsl.so':
/usr/local/lib/libgsl.so: undefined symbol: cblas_ctrmv
I know what the msg means, but how to fix it? |
|
t******g 发帖数: 372 | 26 于server local与否无关,或者至少给些error log 别人也好知道你尝试了啥,
S/W Requirements:
-----------------
MySQL client library ("libmysqlclient.so") and header files
(see www.mysql.com). For Linux/intel you may use the binary rpms
client+devel+shared, and make sure you also have the header files,
they are *NOT* included in the following
MySQL-client-4.1.7-1.i386.rpm
MySQL-shared-4.1.7-1.i386.rpm
but they are included in the latest 4.1.7 rpm versions.
The library libz. This is a stan... 阅读全帖 |
|
f****o 发帖数: 4067 | 27
# begin build properties # autogenerated by buildinfo.sh ro.build.id=KOT49I.
LS740ZV6 ro.build.display.id=KOT49I.LS740ZV6 ro.build.version.incremental=
LS740ZV6.1440117223 ro.build.version.sdk=19 ro.build.version.codename=REL ro
.build.version.release=4.4.2 ro.build.date=Fri Aug 21 09:36:06 KST 2015 ro.
build.date.utc=1440117366 ro.build.type=user ro.build.user=jenkins ro.build.
host=LGEACI5R6 ro.build.tags=release-keys ro.product.model=LGLS740 ro.
product.brand=lge ro.product.name=x5_spr_us ro... 阅读全帖 |
|
|
w*j 发帖数: 336 | 29 使用的是http://jeff.doozan.com/debian/的script, 安装完debian后,在第STEP 2,运行dpkg-reconfigure locales, 但进行不下去了,说/usr/sbin/dpkg-reconfigure: locales is not installed。求解,谢谢
root@debian:~# dpkg-reconfigure locales
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line
75.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debco... 阅读全帖 |
|
c**y 发帖数: 2282 | 30 以前用的好好的现在fail了,你们的呢?
gvoice -e s******[email protected] -p sunwukongmima call 181200000 12345678 1
Traceback (most recent call last):
File "/usr/bin/gvoice", line 129, in
getattr(voice,action)(*args)
File "/usr/lib/python2.5/site-packages/googlevoice/voice.py", line 106,
in call
'remember': '1'
File "/usr/lib/python2.5/site-packages/googlevoice/voice.py", line 210,
in __validate_special_page
load_and_validate(self.__... 阅读全帖 |
|
|
|
n*******n 发帖数: 7628 | 33 http://www.chinesepen.org/Article/yzzjwyh/201010/Article_20101014234326.shtml
中国公民刘晓波获得2010年度诺贝尔和平奖,这一消息在国内和国际引起极大的反响,
它是中国当代一个重大的历史事件,它也为中国和平地实现社会转型、向民主宪政迈进
提供了新的契机。本着对历史负责、对中国的命运前途负责的精神,我们特发表声明如
下。
一、诺贝尔和平奖委员会把本年度的奖项颁发给刘晓波,这一决定符合该奖项的宗旨和
评审标准。在当代社会,和平与人权密不可分,对生命的剥夺与践踏不仅发生在战场上
,也发生在一国之内的暴政与恶法实践中。国际舆论的普遍赞扬证明,将今年的和平奖
授予中国人权运动的代表人物,是一个及时和正确的决定。
二、刘晓波是诺贝尔和平奖的恰当人选,他坚持以非暴力手段维护人权,以理性的态度
抗议社会不公正;他以坚韧的态度争取实现民主宪政目标,而在身受迫害时摒弃仇恨心
理,这一切使他无庸置疑地拥有获奖资格。刘晓波的理念和实践也为中国人在解决政治
、社会冲突中的行为方式提供了典范。
三、刘晓波获奖后,各国政府、各地区、各组织... 阅读全帖 |
|
w*********r 发帖数: 42116 | 34 搞清楚这两点的lib也不能说出来。
说出来自己就没赚头了,lib不是傻子,近期目的是混成中产,长期目的是当lib得代言
人。 |
|
t**********g 发帖数: 3388 | 35 【 以下文字转载自 SanFrancisco 讨论区 】
发信人: goldenlife (goldenlife), 信区: SanFrancisco
标 题: 前即刻老兵:我所了解的人民搜索研发状况(zz)
发信站: BBS 未名空间站 (Thu May 23 23:47:29 2013, 美东)
前即刻老兵:我所了解的人民搜索研发状况
2013年05月24日 11:16 创事记 微博 作者:jikesolider 我有话说
邓亚萍领衔的即刻搜索,一直以来都备受关注
编者注:人民网旗下的即刻搜索,一直以来因名人效应、官方背景、种种变动而备
受关注。本文来自弯曲评论,作者jikesolider自称即刻老兵,仅供参考。
离开即刻已经几个月了,想起在jike将近三年的工作时光,感慨还是很多的,闲来
无事,整理下在即刻的点点滴滴,以供同行或者后续想去即刻谋生的参考。
即刻的前身叫人民搜索,当时可以说一穷二白,当时的领导是宫,由于对搜索不了
解,无从下手,就先和中科院进行合作,用开源的Lucene搭了个搜索,功能和性能不能
适合大搜索的要求。后来就搁浅了。
然后来了世界冠军,世界冠军... 阅读全帖 |
|
a****g 发帖数: 3027 | 36 第一门计算机课是FORTRAN,号称是数学计算快。
第二门计算机课是C,号称流行。
听说计算机系学的是PASCAL,号称是语法严谨。当时看了看,觉得太啰嗦。
还是C简单。就是当时的Windows(还是DOS下的?记不清楚了)edline命令行式编辑器
,用的要吐血,后面的C语言出来了Turbo C, 2.0版本竟然可以鼠标上下移动,直接编
辑文件,感觉到太高效率了。另外,学校大机房80x86 (x = null, 2,? 记不清了)额
外上机要一个小时一块五毛,太贵了,虽然自己有额外免费的100小时,要折腾点啥,
即使有其他系的特殊集训班的某些同学不喜欢电脑,免费转赠了一些机票,也还是不够
用。
眼界浅1:
保送专业随便选,排除了计算机,一台要1万8千块,当地正式编制的双职工,好吃好喝
的,一年家庭收入接近1000块,要20年不吃不喝才能买一台,觉得计算机是奢侈品,没
多少买,也没有多少工作。
眼界浅2:
学了C语言编程调试太无聊,就是体力活,当时看不出来软件又啥前途。
读硕时,机器是非常快的,就是用个C语言写算法main() { },对编程越是觉得
无味。
眼界浅3:
工作了,在软件... 阅读全帖 |
|
|
l****z 发帖数: 29846 | 38 这个不错,要顶一下.
下面的一个comment也不错:
grebklein
4:08 PM MST
Lib: "Taxes are what we all pay to live in society. It's the price we all
pay for civilization. We are all in this together!"
Taxpayer: "But there are 44 million adults, aged 22 to 65, who pay no
federal income taxes at all."
Lib: "Of course they don't pay! They're poor! You have to support them!!"
Taxpayer: "But you just said, "Taxes are what we all pay..."
Lib: "RACIST!!" |
|
d*b 发帖数: 4184 | 39 OK liberals, this list is your top ten most liberal cities in the US. These
are your cities.
1 Detroit Michigan
I don't think much needs to be said about Detroit.
Detroit also came in second in crime. The crime in Detroit is so bad, the
crime has it's own wiki page. Serious, look it up. The most financially
insolvent city in this country just happens to be the one with the second
highest crime rate. Therefore, we can assume based on this city alone that
if your cities economy goes into the toile... 阅读全帖 |
|
|
A***e 发帖数: 130 | 41 My understanding is, the current coding infrastructure, i.e., high-level language source files --> obj/lib files --> executable files, does not support OO, and in particular, does not support template.
Under this infrastructure, if the implementation of STL were put in the .cpp files, which would be compiled to obj/lib files without any information from the users/caller of these STL class/functions, then the obj/lib files had to link to, and work correctly with the users/callers for all possible |
|
m*******l 发帖数: 12782 | 42 python:
Addison.Wesley.Perl.To Python Migration.chm
Addison.Wesley.Python.Programming with the Java Class Libraries.chm
Addison.Wesley.Text.Processing.In.Python.eBook-LiB.chm
Premier.Press.Game.Programming.with.Python.Lua.and.Ruby.ebook-LiB.chm
Premier.Press.Python.Programming.for.the.Absolute.Beginner.eBook-LiB.chm
Python_prog_v4.rar
python_std_lib_example.rar
Python.Testing.Cookbook_v1
Python.Testing.Cookbook_Greg.L.Turnquist.pdf
Python.Testing.Cookbook_source_code.zip
ch
-L
pdf
ch |
|
m*******l 发帖数: 12782 | 43 python:
Addison.Wesley.Perl.To Python Migration.chm
Addison.Wesley.Python.Programming with the Java Class Libraries.chm
Addison.Wesley.Text.Processing.In.Python.eBook-LiB.chm
Premier.Press.Game.Programming.with.Python.Lua.and.Ruby.ebook-LiB.chm
Premier.Press.Python.Programming.for.the.Absolute.Beginner.eBook-LiB.chm
Python_prog_v4.rar
python_std_lib_example.rar
Python.Testing.Cookbook_v1
Python.Testing.Cookbook_Greg.L.Turnquist.pdf
Python.Testing.Cookbook_source_code.zip
ch
-L
pdf
ch |
|