Skip to main content

error C2220 in vs2005

5 replies [Last post]
geelpheels
Offline
Joined: 2006-05-05
Points: 0

When I build the phoneme_feature under windows using VS2005 the error occured:

pcsl_memory.c
pcsl_memory.c(639) : error C2220: warning treated as error - no 'object' file ge
nerated

Probably it is not a problem of this project but of Visual Studio 2005 configuration.
But I really appreciate your help.

Can anyone give any advice ? Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
geelpheels
Offline
Joined: 2006-05-05
Points: 0

jUST REBUILD.

geelpheels
Offline
Joined: 2006-05-05
Points: 0

It's easy,please say sth.

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

Just saw this. First, I just want to make sure you saw the wiki:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEBuilding

Next, almost all phoneME Feature build errors I've seen (assuming you've set up the tools and the paths correctly) stem from cygwin. This one looks like the shell might have been unable to write out the object file because of a cygwin path problem. Please try the various cygwin workarounds mentioned in the wiki.

-- Terrence

geelpheels
Offline
Joined: 2006-05-05
Points: 0

OK. Thanks for terrencebarr.
I saw the vs2005 issues and I removed 2005 back to vs 2003.
Now the original error never happen again but another error seems to come out.
See the following:
==============================
starting DEBUG build
==============================
make[1]: Entering directory `d:/phoneme_feature/build_output/cldc/javacall_i386_
vc/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `d:/phoneme_feature/build_output/cldc/javacall_i386_v
c/target/debug'
make[1]: Entering directory `d:/phoneme_feature/build_output/cldc/javacall_i386_
vc/target/debug'
OsFile.cpp
d:\phoneme_feature\cldc\src\vm\share\runtime\OsFile.cpp(32) : fatal error C1853:
“cldchi.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使
用它(或相反)
make[1]: *** [OsFile.obj] Error 2
make[1]: Leaving directory `d:/phoneme_feature/build_output/cldc/javacall_i386_v
c/target/debug'
make: *** [_debug] Error 2
make: Leaving directory `d:/phoneme_feature/cldc/build/javacall_i386_vc'

Note these Chinese characters means: "The header file 'cldchi.pch' comes from the compiler of an old version or a C++ precompiled header used in C file(or vice vercsa)".

Does it mean that I should change some configurations or anything else?Ask for help.

geelpheels
Offline
Joined: 2006-05-05
Points: 0

No one knows?
Any implication is so helpful.