From: Stefan Hajnoczi <stefanha@gmail.com>
To: Pradeep Kiruvale <pradeepkiruvale@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Adding new source files
Date: Thu, 15 Sep 2016 10:59:25 +0100 [thread overview]
Message-ID: <20160915095925.GC4214@stefanha-x1.localdomain> (raw)
In-Reply-To: <CAJ2SuL=v6K4Yf7n5E57VcdXShyCnSmGuDRV_Ewu6EQC2cq87aQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]
On Wed, Aug 24, 2016 at 03:11:16PM +0200, Pradeep Kiruvale wrote:
> I have added two new files (.h/.c) file in 9pfs for some new feature.
> When I compile there is a lot of compilation time errors and also I do not
> see a dependency
> file getting created for this source file.
>
> Please let me know how can I fix this, is there a place where I need to
> mention the .h files?
> I have already added the .o file extension in Makefile.obj
>
> When I integrate these functionalities inside the existing source files, it
> works fine. But I want
> to keep the code in separate files. Please help me to fix this issue.
You didn't post any error messages, link to a git tree, or detailed
information so no we can't help you.
General tips:
.h files don't need to be listed anywhere manually. Dependencies are
picked up automatically during the build process.
Use "make V=1" to see the full command-lines that make is running. You
can then re-run just a single command-line manually, if necessary, to
help troubleshoot the problem.
Look up the compiler/linker error messages online and try to understand
why you are getting them.
Look at ./configure and the output files it generates to understand how
optional features are enabled/disabled. For example, look at
config-host.mak, x86_64-softmmu/config-target.mak,
./x86_64-softmmu/config-devices.mak.
Learn about gcc -I and header search paths if the compiler cannot find
your header file.
Good luck!
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
prev parent reply other threads:[~2016-09-15 10:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-24 13:11 [Qemu-devel] Adding new source files Pradeep Kiruvale
2016-09-15 9:59 ` Stefan Hajnoczi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160915095925.GC4214@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=pradeepkiruvale@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).