473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Shared file only builds once

Hi,

I have a source file which is shared by two projects. It is included in
one project, and linked to from another.
In the source I have #if compiler directives, as I want to exclude parts
from one of the projects.

The problem I have is that the project that is linking to the file
doesn't appear to compile it with it's compiler options defined, but
seems to use the object file of the other project.

Am I missing something obvious or is there a problem with this?
Thankyou.
Paul
Jun 8 '06 #1
1 1068
when you build the first project it uses what ever directives now when you
uses that asembly it is already built with that directive, and any set to
the directive on the second project will have no effect.
in all cases this is not a good way to do it, because mainting that code
will be a headic. I sugets that you have an bstract class and have two
diffrent direvation from it, one can be used on the first project and the
second in the second one.

"Paul Cheetham" <PA******@dsl.pipex.com> wrote in message
news:uY**************@TK2MSFTNGP04.phx.gbl...
Hi,

I have a source file which is shared by two projects. It is included in
one project, and linked to from another.
In the source I have #if compiler directives, as I want to exclude parts
from one of the projects.

The problem I have is that the project that is linking to the file doesn't
appear to compile it with it's compiler options defined, but seems to use
the object file of the other project.

Am I missing something obvious or is there a problem with this?
Thankyou.
Paul

Jun 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil | last post by:
I realize this is the php group, but I have a question that recurses back to my php install. My objective is a pure 64 bit shared object installation of php 5.0 on UltraSparc Solaris 9 compiled...
2
by: G-Fit | last post by:
Hello group, I have several ASP.NET websites using (so far) a console application (from a collection of parameters, this application builds a PDF file through several professional tools in DOS...
0
by: Chris Travers | last post by:
Hi all; This seems at least somewhat on-topic here, so at the risk of seeming shamelessly self-promoting, I figured I would ask. I am the main developer of an open source CRM suite...
6
by: pankaj.khandelwal | last post by:
Hi, How can I bundle a text/gif file in the shared object. Basically I want to read the content of this text file but I cannot have it seperately on the disc. Any clues. ? Pankaj
0
by: Shiraz | last post by:
Hi I have a question regarding the functionality of merge modules. Since this relates to my previous queries, I'll just give you a brief background on the topic. I had to make an installer for...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
2
by: David Garamond | last post by:
Does it currently work? src/backend/utils/mb/conversion_procs/*/ is not building anything, and 'make install' fails because it tries to copy *.so files. -- dave ...
0
by: | last post by:
I'm come from a self-taught ASP/Dreamweaver background and over the last year have used VS.NET/ASP.NET/C# more and more to the point that it is my primary development environment now. VS.NET is an...
3
by: Bala | last post by:
Hello, I am trying to create a shared library on solaris. The inputs to this library is a source file and then 2 static libraries. I need to call code within the shared library in another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.