LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-31-2010, 06:02 PM   #1
yogi.aash
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
getting "parameter has incomplete type" and "conflicting types" error


Hi Friends,
i am trying to modify a code. Whenever i edit the code, i get the above errors "parameter cmd has an incomplete type" and "conflicting types" error. I have just introduced my new parameters, without modifying the original code. I don't know what i am doing wrong.

(1)i have defined the "enum cmd" in other header file and included it, but still its saying that "parameter cmd has an incomplete type", when i try to compile the code.

(2)A structure is declared in header file and it is defined in .c file. i have included it. when i compile them, without my part, they compile successfully. But when i introduce my part, they say "they both are of conflicting types". Can anyone help me as soon as possible ? Please..

Thanks,
Ashish
 
Old 05-31-2010, 06:10 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
What are you editing?

You may be better off in a C forum also.
 
Old 05-31-2010, 06:25 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,246

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
We'll need to see the code. Also, ask the Mods (via the Report button) to move this to Programming forum for better help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
modify the kernel and compiled but got "dereferencing pointer to incomplete type" err kindlike Linux - Kernel 3 04-09-2011 02:01 PM
How to get the "data type" of an "unknown variable" in "C Language" ? Affair Programming 8 06-20-2009 12:30 PM
"array type has incomplete element type" compiling 2.4.32 kernel Akabaka Linux - General 1 01-08-2006 12:48 PM
C error "dereferencing pointer to incomplete type" lucs Slackware 6 02-21-2005 09:33 AM
warning "conflicting types for buit-in function" while cross-compiling cheema Programming 0 07-07-2004 03:02 AM


All times are GMT -5. The time now is 02:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration