473,769 Members | 7,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What does this error mean?

cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?
Nov 13 '05 #1
9 7726

"Zero" <sb********@yah oo.com> wrote in message
news:73******** *************** ***@posting.goo gle.com...
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est' make: *** [member.o] Error 1
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?


It looks as though the error may be elsewhere, try posting a bit more of
your code
Allan
Nov 13 '05 #2
In article <73************ **************@ posting.google. com>, Zero wrote:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?

It look suspiciously as if your compiler doesn't support unsigned char. I have
no idea as to what kind of compiler wouldn't like that, though..

Another idea that comes to mind is that your compiler might not like the way
you wrote your prototype - i.e. it might not like "packet" and mistakenly
croak on something else (i.e. it might want K&R style prototypes).

Anyways, I don't see any actual problem on this one line.. there's no macro
name here anywhere, I suppose? (construct_requ est and packet are not macros)?

oddness is staring at me.. ;)

rlc
--
Jail: Just Another Interpreted Language
Just: Jail Uses Silly Terms

Join the discussion on the definition of this language at
ja***********@l ists.sourceforg e.net http://jail-ust.sourceforge.net
(send mail to ja************* ********@lists. sourceforge.net)
Nov 13 '05 #3
sb********@yaho o.com (Zero) wrote:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est' Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);


Wild guess time, since you haven't shown enough code for a tame guess.

You may have #defined or typedef'd construct_reque st to be a type. For
example, you could have done

#define construct_reque st int

or

typedef int construct_reque st;

earlier in your code.

If not, post more code.

Richard
Nov 13 '05 #4
In <73************ **************@ posting.google. com> sb********@yaho o.com (Zero) writes:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?


Most likely, because you're trying to compile a standard C program with
a K&R C compiler.

Read cc's man page to see if it can be invoked in standard C mode or use
gcc to compile the code.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
On Wed, 24 Sep 2003, Zero wrote:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
In member.c on line 3 is the statement #include "packet.h". In the file
packet.h the compiler encountered a problem on OR BEFORE line 55. It
thinks the problem is two or more data types in declaration of
'construct_requ est' are invalid.

The key things to remember are that the problem could have occurred on
line 1 or 2 of member.c or on lines 1 through 55 of packet.h.
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?


I see nothing wrong with this line. Must be before line 55. First thinkg
I'd check for is a missing semicolon on line 54.

--
darrell at cs dot toronto dot edu
or
main(){int j=1234;char t[]=":@abcdefghijk lmnopqrstuvwxyz .\n",*i=
"iqgbgxmdbjlgdv .lksrqek.n";cha r *strchr(const char *,int);while(
*i){j+=strchr(t ,*i++)-t;j%=sizeof t-1;putchar(t[j]);} return 0;}
Nov 13 '05 #6
On Wed, 24 Sep 2003, Zero wrote:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
In member.c on line 3 is the statement #include "packet.h". In the file
packet.h the compiler encountered a problem on OR BEFORE line 55. It
thinks the problem is two or more data types in declaration of
'construct_requ est' are invalid.

The key things to remember are that the problem could have occurred on
line 1 or 2 of member.c or on lines 1 through 55 of packet.h.
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?


I see nothing wrong with this line. Must be before line 55. First thinkg
I'd check for is a missing semicolon on line 54.

--
darrell at cs dot toronto dot edu
or
main(){int j=1234;char t[]=":@abcdefghijk lmnopqrstuvwxyz .\n",*i=
"iqgbgxmdbjlgdv .lksrqek.n";cha r *strchr(const char *,int);while(
*i){j+=strchr(t ,*i++)-t;j%=sizeof t-1;putchar(t[j]);} return 0;}
Nov 13 '05 #7
sb********@yaho o.com (Zero) writes:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1


I would check the code just before this, to make sure that the
previous declaration was properly terminated with a ; or }.
--
"This is a wonderful answer.
It's off-topic, it's incorrect, and it doesn't answer the question."
--Richard Heathfield
Nov 13 '05 #8
sb********@yaho o.com (Zero) writes:
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1


I would check the code just before this, to make sure that the
previous declaration was properly terminated with a ; or }.
--
"This is a wonderful answer.
It's off-topic, it's incorrect, and it doesn't answer the question."
--Richard Heathfield
Nov 13 '05 #9
Thanks for your replies.

It turned out that I for got a semi-colon on the line above.

Oooppps!

sb********@yaho o.com (Zero) wrote in message news:<73******* *************** ****@posting.go ogle.com>...
cc -c -o member.o member.c
In file included from member.c:3:
packet.h:55: two or more data types in declaration of `construct_requ est'
packet.h:55: long, short, signed or unsigned invalid for `construct_requ est'
make: *** [member.o] Error 1
Here is what line 55 in packet.h is:

unsigned char *construct_requ est(unsigned char *packet);

Why do I get this error when compiling the program?

Nov 13 '05 #10

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

Similar topics

72
5893
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for example, between a C/C++ programmers with a few weeks of experience and a C/C++ programmer with years of experience. You don't really need to understand the subtle details or use the obscure features of either language
6
23625
by: WindAndWaves | last post by:
Hi Folks I have inhereted a script that I understand reasonably well, I just do not understand !/^\d+$/.test(el.value) what the hell does that mean? Below is the script (there are really three and they validate a four items
121
10170
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
13
5058
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
669
26192
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
13
520
by: Protoman | last post by:
I'm getting an error: 10 C:\Dev-Cpp\Enigma.cpp no match for 'operator<' in 'i < (+cleartext)->std::basic_string<_CharT, _Traits, _Alloc>::end ()' Code: Enigma.hpp -------------------------- #pragma once
5
468
by: prabu | last post by:
Hi all, I want to know, what does the value of the array in the following statement mean and How to print the content of the array SMB_Negotiate using printf? unsigned char SMB_Negotiate = "\x00\x00\x00\x85\xFF\x53\x4D\x42\x72\x00\x00\x00\x00\x18\x53\xC8"
6
2432
by: Bint | last post by:
I'm getting this returned from a PHP script. What does this mean? <b>Parse error</b>: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in <b>/ho Thanks B
2
13071
by: Lambda | last post by:
The code is simple: // Token.h #ifndef TOKEN_H #define TOKEN_H #include <vector> #include <string> class Token
5
13497
by: =?GB2312?B?17/HvyBaaHVvLCBRaWFuZw==?= | last post by:
Hi, I would like to have someone comments on what's the best practice defining error codes in C. Here's what I think: solution A: using enum pros: type safe. better for debug (some debugger will show the name not only the value) cons: enum can not be forward declared which makes all error codes
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.