G*********a 发帖数: 1080 | 1 it is an open source from: http://afflatus.ucd.ie/~ebbis/ at the end of this
page is the place to download it.
there are 2 packages under src/, one is examples/example.java, another one is
another package named wordnet.similarity in wordnet/;
no matter how i tried compile these src files, it always have problems, who
can help? thanks. |
|
w***y 发帖数: 6251 | 2 现在排除了这个可能,因为有的访问是可以的,但是有的不可以,我彻底晕菜了
而且很让我ft的是,这些都是以前work的,我暑假走了一个月,回来他们就告诉我不能
用了,但是没有人动过这些codes 我想可能还是系统的一些毛病吧,气死我了
log文件里完整的错误信息是这样的
2005-08-24 18:33:53 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/usr/share/tomcat5/work/Catalina/localhost/_/org/apache/jsp/search_005fprotein
_jsp.java:11: error while writing org.apache.jsp.search_005fprotein_jsp: /usr/
share/tomcat5/work |
|
g*****g 发帖数: 34805 | 3 I just realize our web service was compiled with debug on,
it's convenient if something goes wrong, just want to know
if it will sacrifise a lot of performance. |
|
s*****i 发帖数: 650 | 4 什么命令可以知道jar文件是用什么version的java compile的
thanks. |
|
t*******e 发帖数: 684 | 5 JVMs with JIT compiler generate some native code at runtime to replace a
portion of byte code interpretations. |
|
b******y 发帖数: 9224 | 6 I got so rustic with javac command line, and being thinking about how to
compile java code starting from a certain root directory.
Could anyone help and let me know how to do that?
is it like:
javac mydir/*.java
? |
|
p******g 发帖数: 347 | 7 【 以下文字转载自 Programming 讨论区 】
发信人: paperdog (I've Never Been To Me), 信区: Programming
标 题: netbeans compile on save
发信站: BBS 未名空间站 (Tue Mar 8 10:20:37 2011, 美东)
most of the time it works. however, it doesn't some time. and when it doesn'
t work, it will screw up things like refactoring (java), hot swap code when
attaching to remote debugger, and it is not able to detect simple errors
such as missing class method.
anyone has the similar experience? any hint? |
|
o****i 发帖数: 1706 | 8 【 以下文字转载自 Programming 讨论区 】
发信人: ouyadi (可乐会捂帮帮众), 信区: Programming
标 题: Java代码,老是compile出错,大家帮我看看哪错了。。。
发信站: BBS 未名空间站 (Wed Apr 27 16:58:23 2011, 美东)
我在git上push到学校的服务器后编译老是不通过,错误如下,麻烦大家帮我查下原因
,谢谢啦!
javac -classpath /usr/share/junit/lib/junit.jar -d classes -sourcepath .
Iterator.java List.java TestUpTree.java UpTree.java
UpTree.java:34: type Iterator does not take parameters
public class NIterator implements Iterator{
^
UpTree.java:104: type Iterator does not take parameters
pub... 阅读全帖 |
|
|
m******2 发帖数: 48 | 10 比如说,我们练习都会从
public boolean xyzThere(String str) {
return str.contains("xyz") && !str.contains(".xyz");
}
直接开始。
但是如果把以上代码放到eclipse 或者compile and execute java online上的main
class 里,
给出错误是:
at least one public class is required in main file
所以在开头又加上
public class HelloWord{
错误是缺少 public static void main(String []args)
但是加上之后,还是不对。
向请教大家,应该怎么解决这个问题?
非常感谢:) |
|
p******g 发帖数: 347 | 11 【 以下文字转载自 Programming 讨论区 】
发信人: paperdog (I've Never Been To Me), 信区: Programming
标 题: netbeans compile on save
发信站: BBS 未名空间站 (Tue Mar 8 10:20:37 2011, 美东)
most of the time it works. however, it doesn't some time. and when it doesn'
t work, it will screw up things like refactoring (java), hot swap code when
attaching to remote debugger, and it is not able to detect simple errors
such as missing class method.
anyone has the similar experience? any hint? |
|
w*s 发帖数: 7227 | 12 i downloaded net-snmp, it's so hard to make the cross compile to build.
anyone has such experience ? |
|
w*b 发帖数: 73 | 13 You want to kill him:) He said he is the very beginner, and only ask for
a makefile.
PS. you don't need a makefile to compile. |
|
a*****i 发帖数: 4391 | 14 【 以下文字转载自 Linux 讨论区 】
发信人: ayanami (螃蟹@FROSTSHOCK PWNS YOU!!11!), 信区: Linux
标 题: 问一个cross compilation的问题
发信站: BBS 未名空间站 (Tue Feb 13 15:22:22 2007), 转信
I would get this error message:
/opt/crosstool/powerpc-405-linux-gnu/gcc-3.4.4-glibc-2.3.5/lib/gcc/
powerpc-405-linux-gnu/3.4.4/../../../../include/c++/3.4.4/cstdlib:103:
error: `::malloc' has not been declared
Anyone has clue of how to fix this?? |
|
p**********g 发帖数: 9558 | 15 not sure
but try to use default path
xxxx-ld --verbose to find the default path for cross compiler |
|
h****e 发帖数: 2125 | 16 the compiler expects you to override virtual foo(int) method as well,
otherwise it's confused. just simply do in Derived:
"
virtual int foo(int i)
{
return Base::foo(i);
}
"
base
elegantly |
|
t****t 发帖数: 6806 | 17 You are not supposed to do that (change char literal). And if you do? Yes
you guessed it, it's undefined. So compiler has no problem, you have. |
|
c*****g 发帖数: 119 | 18 undefined, it depends on the implementation of compilers. |
|
t****t 发帖数: 6806 | 19 why do you think so?
if it's undefined, it's undefined. anything could happen.
it's a dangerous tempt, to try to find out what will actually happen in "
undefined" situation, unless of course if you are writing compilers. you may
get wrong or misleading image, which may cause trouble in later programming
. if you only remember "it's undefined", then you won't touch it anymore.
a |
|
z***e 发帖数: 5393 | 20 err....I was just doing it for fun.
and I gave up. different compiler does give different result, even for vc
itself. And release/debug build gives different runtime result...
My thought is because of the optimization of control flow. The output of *a=
'*' is used in the next instruction printf("%c",*a), so the printf parameter
is linked to '*' instead of *a. Since this is a function call which might
have side effect, the 2nd printf then needs to fetch the real data from *a.
Just my guess.
may |
|
e*******t 发帖数: 20 | 21 Hello,
Could anyone recommend a free (not illegal) C++ compiler that works in Vista
? After upgrading I found the old one is not working anymore. Thanks! |
|
e*******t 发帖数: 20 | 22 Thank all of you for the inputs. I'm currently using VC++ 2008 ee; does it
carry all of the basic compiler functions? I am mainly using C++ for
numerical analysis, optimization, etc. |
|
g*********s 发帖数: 1782 | 23 Hi, can any guru give some suggestion on how to develop a smart parser/
compiler
given a set of syntax definition?
By "smart" I mean the parser can skip some errors and continue, like gcc
does in some situation. I hope to learn some general principles on this
issue.
Thanks! |
|
t****t 发帖数: 6806 | 24 come on, this is obviously a compile error. not even in link stage. |
|
y****e 发帖数: 23939 | 25 #include
template Vector3DTemplate Vector3DTemplate::Rotate(
Vector3DTemplate axis, double angle) {
double r = angle;
T a = axis.values[0];
T b = axis.values[1];
T c = axis.values[2];
T q0 = (T)( std::cos(r/2.0) );
T q1 = (T)( std::sin(r/2.0)* a );
T q2 = (T)( std::sin(r/2.0)* b );
T q3 = (T)( std::sin(r/2.0)* c );
...........
}
The code looks OK. The problem is if I exteact this file and compile this it
in a pet project, it is fine. But |
|
r*******y 发帖数: 290 | 26 用了几个template加callback function
结果compiler不work了,说assertion fails in ...src/omfi.c
自己弄个functor class代替这个call back function就好了
看来搞Java的弄C编译器还是不行 |
|
h*********o 发帖数: 62 | 27 Haven't C++ for years. Anyone can suggest a good free IDE for coding in both
windows and unix/linux envs. And also please suggest a good C++ compiler. |
|
h*********o 发帖数: 62 | 28 what kind of compiler does eclipse use? GNU C++?
Is eclipse popular in C++? |
|
h*********o 发帖数: 62 | 29 what kind of compiler does eclipse use? GNU C++?
Is eclipse popular in C++? |
|
n**d 发帖数: 9764 | 30 Thanks! You did find one error, but the VC++ compiler still has the same
error. |
|
j****i 发帖数: 305 | 31 I have a sample file and I could get it to compile.
code:
/////////1/////////2/////////3/////////4/////////5/////////6/////////7//////
///8
// demo.cpp
//
// (C) Copyright 2002-4 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include
#include
#include
#include
#include |
|
b***y 发帖数: 2799 | 32 ☆─────────────────────────────────────☆
seki (瓜金) 于 (Sat Sep 24 15:38:44 2005) 提到:
发信人: seki (瓜金), 信区: Windows
标 题: VisualC++的compiler是不是也不是free的?
发信站: BBS 未名空间站 (Sat Sep 24 15:38:30 2005), 转信
不需要Visual Studio的界面,
只要一个编译器,cl.exe和nmake
可能吗?
多谢
☆─────────────────────────────────────☆
netghost (Up to Isomorphism) 于 (Sat Sep 24 16:24:13 2005) 提到:
是.不过那样没什么优势把.
☆─────────────────────────────────────☆
aZhu (a+zhu) 于 (Sat Sep 24 17:24:24 2005) 提到:
ft. it is totally free, I think
becau |
|
b****a 发帖数: 4465 | 33 一个公司面试,既然要先做一套 compiledCprogram, 带去面试时讨论。可我的PC
上还没有compiler。 |
|
g****y 发帖数: 101 | 34 I have a .c function (including parameter passing) files which will call
multiple other .c and .h files. There is no main function.How can I compile
them into one obj file so that it can be called by other program? Thanks a
lot! |
|
l**t 发帖数: 64 | 35 Your problem is how to generate the static library,
and it depends on your platform.
for win32, use lib.exe (provided by vc) or ar (for win32)
for linux, use ar (provided by binutils)
compile |
|
n****g 发帖数: 150 | 36 一样的吧,估计你老板机子上没装intel compiler。你应该在你老板机子上装个一样的
linux,就能运行你的程序了;不过记得备份你老板的文件。 |
|
y****e 发帖数: 23939 | 37 This line of code:
static int k_means_cont_table_(int * grp1, int * grp2, int * stb, long s1,
long s2, int flag);
always report error:
error C2143: syntax error : missing ')' before 'constant'
error C2143: syntax error : missing ';' before 'constant'
error C2059: syntax error : ')'
error C2238: unexpected token(s) preceding ';'
If I comment out this line and the corresponding code in cpp, then it
compiles OK. I checked it again and again, it looks innocent. What could be
the reason for this erro |
|
t****t 发帖数: 6806 | 38 1. type that line again. don't copy/paste.
2. do you think you could have some macro intruding this line?
try use cpp to see what the compiler really saw. |
|
y****e 发帖数: 23939 | 39 I have tried 1.
I also doubted macro, tried to change function name and variable name.
What do you mean "use cpp to see what the compiler really saw". Howcan I
do it?
Thank you very much. |
|
t****t 发帖数: 6806 | 40 try to use cl.exe /E to compile. |
|
l***g 发帖数: 1035 | 41 i remember intel has compiler but no linker. would need MS linker instead..
is it still true?
还有
含main |
|
s*******e 发帖数: 664 | 42 ☆─────────────────────────────────────☆
SLWY (松林物语) 于 (Thu Oct 22 00:13:02 2009, 美东) 提到:
I don't quite understand.
when i am reading os textbook, it says the DOS bind address
at compile time. So when a DOS excecutable file is copy/pasted to another ma
chine, it can not run because the address might not be available at the new
machine.
Who can explain this? Really confused...
Thanks!
☆─────────────────────────────────────☆
Xentar (思考猪) 于 (Thu Oct 22 00:21:41 2009, 美东) 提到:
Have you used |
|
s*******e 发帖数: 27 | 43 Thanks a lot.
lookup the vtable and find it. so it should fail. bar is not even a member
of base.
pointer to call it, is a compile time error. you can downcast using |
|
c***k 发帖数: 1589 | 44 早知道把问题说明白就好了
VC有个compiler extension:declspec(selectany)
declspec就是一个声明之类的东西,括号里面可以是各种东西
gcc没这个,但有一个类似的
__attribute__((weak))
因为有太多这样的东西了 (> 10000),所以我需要一个macro
#define declspec(selectany) __attribute__((weak))
但这样是不行的,因为macro里,括号表示argument
这样所有的declspec(阿猫阿狗)都会被替换了 |
|
d****p 发帖数: 685 | 45 I meant partial specialization. I thought it was not in standard since
several compilers I use don't support it.
Definitely you are right that it is already in standard. |
|
w****g 发帖数: 206 | 46 老板让我试着用portland的compiler build code,以前一直用intel的,这两个之间的
flag是怎么对应的啊?
CC=icc
CXX=icpc
LINK=icpc
AR="/usr/bin/ar cru"
RANLIB=/usr/bin/ranlib
DEPENDFLAG="-MM"
REL_FLAGS="-fPIC"
SO_LIBS=""
CPPFLAGS="-Wall"
OPT_CPPFLAGS="-O2 -DNDEBUG"
DBG_CPPFLAGS="-O0 -g -DDEBUG"
DO_64BITS=1
ARCH_DIR="$canonical_name_guess"
SYS_LIBS="-i-static"
;;
象以上这些,除了吧icc改成pgcc,icpc改成pgCC外,其他的怎么修改啊? |
|
|
e****d 发帖数: 895 | 48 Connect to a remote unix server from windows and run your C program?
This is nothing related to compilation unless you want to port a unix C
program
to windows. |
|
a****l 发帖数: 8211 | 49 For the application you are looking at, very probably you can simply dump
all the code into a visual studio project and compile and run (assuming the
author provides all the libraries in that zip file)
This seems to be a simply application that probably does not involve any
special unix operation, so it's highly likely you can get it ported to
windows with minimal effort. |
|
N***m 发帖数: 4460 | 50 for this snippet, no error was reported on gcc.
It could be some error elsewhere. As C2784 says:
'declaration' : could not deduce template argument for 'type' from 'type.'
The compiler cannot deduce a template argument from the supplied
function arguments. |
|