Sharing Common Code

Hello Everybody,

How can i share common code between 2 drivers. i wanted to structure my
source code like the following diagram

Drive:\ Directory -± Common Code
± Driver 1 Specific Code
± Driver 2 Specific Code

But I cannot complie files using
SOURCES= …\Common Code\File1.c …
Or
SOURCES= Drive:\Directory\Common Code\File1.c …

I encouter errors… Is there a way to overcome these errors?

Best Regards,
Rikki Tamayo

Make the common code a library and link it with the particular modules.

Pete

Peter Scott
xxxxx@KernelDrivers.com
www.KernelDrivers.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-184081-
xxxxx@lists.osr.com] On Behalf Of Rikki Tamayo
Sent: Tuesday, August 10, 2004 8:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Sharing Common Code

Hello Everybody,

How can i share common code between 2 drivers. i wanted to structure my
source code like the following diagram

Drive:\ Directory -± Common Code
± Driver 1 Specific Code
± Driver 2 Specific Code

But I cannot complie files using
SOURCES= …\Common Code\File1.c …
Or
SOURCES= Drive:\Directory\Common Code\File1.c …

I encouter errors… Is there a way to overcome these errors?

Best Regards,
Rikki Tamayo


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

SOURCES file does not understand filenames with spaces, as also any
pathnames except …\file.c.
You can only reference the files 1 directory up.

If this is unacceptable - use the LIB file.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Rikki Tamayo”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 11, 2004 7:12 AM
Subject: [ntdev] Sharing Common Code

> Hello Everybody,
>
> How can i share common code between 2 drivers. i wanted to structure my
> source code like the following diagram
>
>
> Drive:\ Directory -± Common Code
> ± Driver 1 Specific Code
> ± Driver 2 Specific Code
>
> But I cannot complie files using
> SOURCES= …\Common Code\File1.c …
> Or
> SOURCES= Drive:\Directory\Common Code\File1.c …
>
> I encouter errors… Is there a way to overcome these errors?
>
> Best Regards,
> Rikki Tamayo
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Hello Everybody,

Thank you for your suggestions. I think the …\file.c will do for my
situation

Best Regards,
Rikki Tamayo.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, August 11, 2004 3:36 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Sharing Common Code

SOURCES file does not understand filenames with spaces, as also any
pathnames except …\file.c.
You can only reference the files 1 directory up.

If this is unacceptable - use the LIB file.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Rikki Tamayo”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, August 11, 2004 7:12 AM
Subject: [ntdev] Sharing Common Code

> Hello Everybody,
>
> How can i share common code between 2 drivers. i wanted to structure my
> source code like the following diagram
>
>
> Drive:\ Directory -± Common Code
> ± Driver 1 Specific Code
> ± Driver 2 Specific Code
>
> But I cannot complie files using
> SOURCES= …\Common Code\File1.c …
> Or
> SOURCES= Drive:\Directory\Common Code\File1.c …
>
> I encouter errors… Is there a way to overcome these errors?
>
> Best Regards,
> Rikki Tamayo
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@omron.com.ph
To unsubscribe send a blank email to xxxxx@lists.osr.com