473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Compile error in visual c++

Hi,

I am new to visual c++ and I am trying to compile a Decoder project
with library in it. I tried to create a win32 console application and
tried to add a compiled static library to it. I ended up with the
following error message "Errpr executing c1.exe" as follows.
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(504) : error
C2224: left of '.name' must have struct/union type
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(504) : warning

C4047: 'function' : 'const char *' differs in levels of indirection
from 'const unsigned int '
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(504) : warning

C4024: 'strncpy' : different types for formal and actual parameter 2
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(504) : error
C2198: 'strncpy' : too few actual parameters
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(505) : error
C2224: left of '.name' must have struct/union type
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(508) : error
C2224: left of '.name' must have struct/union type
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(508) : error
C2198: 'fopen' : too few actual parameters
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(510) : error
C2224: left of '.name' must have struct/union type
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(514) : error
C2224: left of '.name' must have struct/union type
c:\documents and
settings\uday\desktop\decode\src\decode\decode_thr eads.c(514) : error
C2198: '_splitpath' : too few actual parameters
ERRMSG.C
output.c
parse.c
Error executing cl.exe.
I hope there is some change in the settings that I need to make. Please

help me out as a I am new to visual c++ .
Thanks in advance.
uday

Sep 20 '06 #1
1 2876

uday wrote:
Hi,

I am new to visual c++ and I am trying to compile a Decoder project
with library in it. I tried to create a win32 console application and
tried to add a compiled static library to it. I ended up with the
following error message "Errpr executing c1.exe" as follows.
<snip list of error messages but no code>

This FAQ

http://www.parashift.com/c++-faq-lit...t.html#faq-5.8

tells you how to post questions about code that doesn't work. You got
point 7 - the compiler messages - which is important, but without the
code that produced the messages it is impossible to know what the
problem is. Read the guidelines in the FAQ and post a *minmal*
*complete* code example and you should get lots of help.

Gavin Dean

Sep 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
5
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
3
by: Andrew Luke | last post by:
Hi all you C++ guru's! I'm 'very, very' new to C++ and I'm having a little trouble configuring my VS environment I think - when I try and compile some sample code I'm getting the following...
2
by: Gustavo | last post by:
After updating Windows 2000 I began to get a weird compile error message: Deleting intermediate files and output files for project 'pp - Win32 Debug'. --------------------Configuration: pp -...
0
by: JW | last post by:
I'm using MSVC7.0 and I'm getting a ton of errors with most of them occurring in cstdio. Any thoughts as to what might cause this? d:\Program Files\Microsoft Visual Studio .NET\Vc7...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
3
by: Gary O | last post by:
I would like to compile a class I have built to a library. I use the following command line: vbc /reference:Microsoft.VisualBasic.dll /t:library...
2
by: BruceWho | last post by:
I downloaded boost1.35.0 and built it with following command: bjam --toolset=msvc-7.1 --variant=release --threading=multi -- link=shared --with-system stage and it failed to compile, error...
7
by: QiongZ | last post by:
Hi, I just recently started studying C++ and basically copied an example in the textbook into VS2008, but it doesn't compile. I tried to modify the code by eliminating all the templates then it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.