how to add files to SOURCES in sources file

Hi,

I am using DDKBUILD.bat to compile my driver.
I have a problem here, if I want to add some .C files in another folder how
can I add these files to the SOURCES tag in the sources file?

I tried putting the full path:
C:\myFolder\Test\Test.c
but it has error saying “Invalid prefix directory”

is there a solution?

Thank You!

cheers,
vincent


Find gifts, buy online with MSN Shopping. http://shopping.msn.com.sg/

use relative paths for example, …..\group\test1\abc.c

–Mark


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“vincent gambit” wrote in message
news:xxxxx@ntdev…
>
> Hi,
>
> I am using DDKBUILD.bat to compile my driver.
> I have a problem here, if I want to add some .C files in another folder
how
> can I add these files to the SOURCES tag in the sources file?
>
> I tried putting the full path:
> C:\myFolder\Test\Test.c
> but it has error saying “Invalid prefix directory”
>
> is there a solution?
>
> Thank You!
>
> cheers,
> vincent
>
> _________________________________________________________________
> Find gifts, buy online with MSN Shopping. http://shopping.msn.com.sg/
>
>
>

I don’t think build will let you go ‘up and over’ with relative paths, only
directly up to a parent directory. Instead you have to either build the
other directory into a library and link to it, move the files, or do the
hideous awful and not recommended trick of including the .c file in a .h
file.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Friday, November 14, 2003 9:18 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: how to add files to SOURCES in sources file

use relative paths for example, …..\group\test1\abc.c

–Mark


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/
“vincent gambit” wrote in message
> news:xxxxx@ntdev…
> >
> > Hi,
> >
> > I am using DDKBUILD.bat to compile my driver.
> > I have a problem here, if I want to add some .C files in another
> > folder
> how
> > can I add these files to the SOURCES tag in the sources file?
> >
> > I tried putting the full path:
> > C:\myFolder\Test\Test.c
> > but it has error saying “Invalid prefix directory”
> >
> > is there a solution?
> >
> > Thank You!
> >
> > cheers,
> > vincent
> >
> > _________________________________________________________________
> > Find gifts, buy online with MSN Shopping.
> http://shopping.msn.com.sg/
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

Hi,

thanks for your reply

i tried but it still refuse to compile

thank you

cheers,
vincent

From: “Mark Cariddi”
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Re: how to add files to SOURCES in sources file
>Date: Fri, 14 Nov 2003 09:17:33 -0500
>
>use relative paths for example, …..\group\test1\abc.c
>
>–Mark
>
>–
>Mark Cariddi
>Consulting Associate
>OSR, Open Systems Resources, Inc.
>http://www.osr.com/
>“vincent gambit” wrote in message
>news:xxxxx@ntdev…
> >
> > Hi,
> >
> > I am using DDKBUILD.bat to compile my driver.
> > I have a problem here, if I want to add some .C files in another folder
>how
> > can I add these files to the SOURCES tag in the sources file?
> >
> > I tried putting the full path:
> > C:\myFolder\Test\Test.c
> > but it has error saying “Invalid prefix directory”
> >
> > is there a solution?
> >
> > Thank You!
> >
> > cheers,
> > vincent
> >
> >
> > Find gifts, buy online with MSN Shopping. http://shopping.msn.com.sg/
> >
> >
> >
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com


Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg

If something wasn’t changed within last months, it never worked. You have
access to current and parent directory only i.e. can use file.c or
…\file.c.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
Reply To: xxxxx@lists.osr.com
Sent: Saturday, November 15, 2003 5:52 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: how to add files to SOURCES in sources file

Hi,

thanks for your reply

i tried but it still refuse to compile

thank you

cheers,
vincent

>From: “Mark Cariddi”
> >Reply-To: “Windows System Software Devs Interest List”
> >
> >To: “Windows System Software Devs Interest List”
> >Subject: [ntdev] Re: how to add files to SOURCES in sources file
> >Date: Fri, 14 Nov 2003 09:17:33 -0500
> >
> >use relative paths for example, …..\group\test1\abc.c
> >
> >–Mark
> >
> >–
> >Mark Cariddi
> >Consulting Associate
> >OSR, Open Systems Resources, Inc.
> >http://www.osr.com/
> >“vincent gambit” wrote in message
> >news:xxxxx@ntdev…
> > >
> > > Hi,
> > >
> > > I am using DDKBUILD.bat to compile my driver.
> > > I have a problem here, if I want to add some .C files in another
> folder
> >how
> > > can I add these files to the SOURCES tag in the sources file?
> > >
> > > I tried putting the full path:
> > > C:\myFolder\Test\Test.c
> > > but it has error saying “Invalid prefix directory”
> > >
> > > is there a solution?
> > >
> > > Thank You!
> > >
> > > cheers,
> > > vincent
> > >
> > > _________________________________________________________________
>

Hmm, I meant “…\file.c” i.e. two dots + backslash. One dot was removed on
the way; there are two in my sentbox.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From:
xxxxx@veridicom.cz.nospam[SMTP:xxxxx@veridicom.cz.nospam]
Reply To: xxxxx@lists.osr.com
Sent: Saturday, November 15, 2003 6:03 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: how to add files to SOURCES in sources file

If something wasn’t changed within last months, it never worked. You have
access to current and parent directory only i.e. can use file.c or
.\file.c.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]

> ----------
> From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
> Reply To: xxxxx@lists.osr.com
> Sent: Saturday, November 15, 2003 5:52 AM
> To: xxxxx@lists.osr.com
> Subject: [ntdev] Re: how to add files to SOURCES in sources file
>
>
> Hi,
>
> thanks for your reply
>
> i tried but it still refuse to compile
>
> thank you
>
> cheers,
> vincent
>
> >From: “Mark Cariddi”
> > >Reply-To: “Windows System Software Devs Interest List”
> > >
> > >To: “Windows System Software Devs Interest List”
> > >Subject: [ntdev] Re: how to add files to SOURCES in sources file
> > >Date: Fri, 14 Nov 2003 09:17:33 -0500
> > >
> > >use relative paths for example, …..\group\test1\abc.c
> > >
> > >–Mark
> > >
> > >–
> > >Mark Cariddi
> > >Consulting Associate
> > >OSR, Open Systems Resources, Inc.
> > >http://www.osr.com/
> > >“vincent gambit” wrote in message
> > >news:xxxxx@ntdev…
> > > >
> > > > Hi,
> > > >
> > > > I am using DDKBUILD.bat to compile my driver.
> > > > I have a problem here, if I want to add some .C files in another
> > folder
> > >how
> > > > can I add these files to the SOURCES tag in the sources file?
> > > >
> > > > I tried putting the full path:
> > > > C:\myFolder\Test\Test.c
> > > > but it has error saying “Invalid prefix directory”
> > > >
> > > > is there a solution?
> > > >
> > > > Thank You!
> > > >
> > > > cheers,
> > > > vincent
> > > >
> > > > _________________________________________________________________
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: michal.vodicka@st.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

It hasn’t changed Michal. You can still only reference parent or current
directory for the sources file.


Gary G. Little
Seagate Technologies, LLC

“Michal Vodicka” wrote in message
news:xxxxx@ntdev…
>
> Hmm, I meant “…\file.c” i.e. two dots + backslash. One dot was removed on
> the way; there are two in my sentbox.
>
> Best regards,
>
> Michal Vodicka
> STMicroelectronics Design and Application s.r.o.
> [michal.vodicka@st.com, http:://www.st.com]
>
> > ----------
> > From:
> > xxxxx@veridicom.cz.nospam[SMTP:xxxxx@veridicom.cz.nospam]
> > Reply To: xxxxx@lists.osr.com
> > Sent: Saturday, November 15, 2003 6:03 AM
> > To: xxxxx@lists.osr.com
> > Subject: [ntdev] Re: how to add files to SOURCES in sources file
> >
> > If something wasn’t changed within last months, it never worked. You
have
> > access to current and parent directory only i.e. can use file.c or
> > .\file.c.
> >
> > Best regards,
> >
> > Michal Vodicka
> > STMicroelectronics Design and Application s.r.o.
> > [michal.vodicka@st.com, http:://www.st.com]
> >
> > > ----------
> > > From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
> > > Reply To: xxxxx@lists.osr.com
> > > Sent: Saturday, November 15, 2003 5:52 AM
> > > To: xxxxx@lists.osr.com
> > > Subject: [ntdev] Re: how to add files to SOURCES in sources file
> > >
> > >
> > > Hi,
> > >
> > > thanks for your reply
> > >
> > > i tried but it still refuse to compile
> > >
> > > thank you
> > >
> > > cheers,
> > > vincent
> > >
> > > >From: “Mark Cariddi”
> > > >Reply-To: “Windows System Software Devs Interest List”
> > > >
> > > >To: “Windows System Software Devs Interest List”

> > > >Subject: [ntdev] Re: how to add files to SOURCES in sources file
> > > >Date: Fri, 14 Nov 2003 09:17:33 -0500
> > > >
> > > >use relative paths for example, …..\group\test1\abc.c
> > > >
> > > >–Mark
> > > >
> > > >–
> > > >Mark Cariddi
> > > >Consulting Associate
> > > >OSR, Open Systems Resources, Inc.
> > > >http://www.osr.com/
> > > >“vincent gambit” wrote in message
> > > >news:xxxxx@ntdev…
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am using DDKBUILD.bat to compile my driver.
> > > > > I have a problem here, if I want to add some .C files in another
> > > folder
> > > >how
> > > > > can I add these files to the SOURCES tag in the sources file?
> > > > >
> > > > > I tried putting the full path:
> > > > > C:\myFolder\Test\Test.c
> > > > > but it has error saying “Invalid prefix directory”
> > > > >
> > > > > is there a solution?
> > > > >
> > > > > Thank You!
> > > > >
> > > > > cheers,
> > > > > vincent
> > > > >
> > > > > _________________________________________________________________
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: michal.vodicka@st.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>

Known problem (umm, “feature”). Use the first technique Mark Roddy suggested.

vincent gambit wrote:

Hi,

thanks for your reply

i tried but it still refuse to compile


If replying by e-mail, please remove “nospam.” from the address.

James Antognini
Windows DDK MVP