about sources instruction

My “sources” instruction is as follows:

SOURCES=a.c \
sw\b.c \

comment:
The “sw” is a subdirectory of current directory.

There are erros when compiling my code.

How can I modify the instruction?
thanks!

My psychic powers are off today. What specific errors are you getting?

d

tiny phone keyboard + fat thumbs = you do the muth

-----Original Message-----
From: xxxxx@hotmail.com
Sent: Wednesday, February 03, 2010 7:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] about sources instruction

My “sources” instruction is as follows:

SOURCES=a.c <br> sw\b.c <br>
comment:
The “sw” is a subdirectory of current directory.

There are erros when compiling my code.

How can I modify the instruction?
thanks!


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

you need to have another file your directory called *dirs*
the file *dirs* should contain
DIRS= \
sw

within the *sw* directory you need to have another file called
*sources*similar to the one you have mentioned, and that should
include your b.c

SOURCES=b.c \

On Thu, Feb 4, 2010 at 8:43 AM, wrote:

> My “sources” instruction is as follows:
>
> SOURCES=a.c <br>> sw\b.c <br>>
> comment:
> The “sw” is a subdirectory of current directory.
>
> There are erros when compiling my code.
>
> How can I modify the instruction?
> thanks!
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Note that you cannot have both a sources and dirs file in the same directory

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Madhusudan Narayan
Sent: Wednesday, February 03, 2010 7:59 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] about sources instruction

you need to have another file your directory called dirs
the file dirs should contain
DIRS= \
sw

within the sw directory you need to have another file called sources similar to the one you have mentioned, and that should include your b.c

SOURCES=b.c \

On Thu, Feb 4, 2010 at 8:43 AM, > wrote:
My “sources” instruction is as follows:

SOURCES=a.c <br> sw\b.c <br>
comment:
The “sw” is a subdirectory of current directory.

There are erros when compiling my code.

How can I modify the instruction?
thanks!


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

thanks everyone.
My issue has been resolved.
I created a *dirs* file in current directory, as follows:

DIRS= \
pksw

I created a *sources* file in the subdirectory of current directory, as follows:

TARGETNAME=test
TARGETTYPE=DRIVER_LIBRARY
TARGETPATH=lib/$(BUILD_ALT_DIR)

KMDF_VERSION_MAJOR=1

NTTARGETFILES=

TARGETLIBS=$(TARGETLIBS) \
$(DDK_LIB_PATH)\ntstrsafe.lib

INCLUDES=$(INCLUDES);

#C_DEFINES = $(C_DEFINES) -DASSOC_WRITE_REQUEST_WITH_DMA_TRANSACTION=1
C_DEFINES = $(C_DEFINES)

SOURCES=..\a.c \
b.c \

Generate WPP tracing code

$(SOURCES) -- run software preprocessor on files listed in SOURCES

-km -- use kernel mode

-func -- define function we'll use for tracing

This would map all TraceEvents calls to

DoTraceMessage.

RUN_WPP= $(SOURCES) \
-km \
-func:TraceEvents(LEVEL,FLAGS,MSG,...) \
-gen:{km-WdfDefault.tpl}*.tmh

TARGET_DESTINATION=wdf

Temporarily excuse usage of serviceability impairing macros in code...

ALLOW_DATE_TIME=1

You cannot do this. The only allowed paths in the SOURCES directive are …\
and \ where is the machine architecture. You cannot have a
subdirectory and refer to files in it.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

wrote in message news:xxxxx@ntdev…
> My “sources” instruction is as follows:
>
> SOURCES=a.c <br>> sw\b.c <br>>
> comment:
> The “sw” is a subdirectory of current directory.
>
> There are erros when compiling my code.
>
> How can I modify the instruction?
> thanks!
>
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4834 (20100204)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 4834 (20100204)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Quite true.

You can however put the SOURCES file in a subdirectory, which is what a number of samples do. For an example, look at ‘filesys/fastfat.’

I’m not sure what you’re trying to do exactly, but maybe that will help.

> You can however put the SOURCES file in a subdirectory

This is because …\ paths are also allowed in SOURCES.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com