473,394 Members | 1,749 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,394 software developers and data experts.

Compiling Problems

Hi all,

I am trying to create a namespace hierachy but i think i
am doing something wrong.

I have an DAL vb file with the namespace:

CompanyName.newsletter.DAL

and i compile that using the standard vbc in command
prompt routine, and that works. then i try and create a
Business Layer vb file, with the namespace:

CompanyName.Newsletter.BLL

But for this to work i have to compile both files
together, even though i have imported the
CompanyName.newsletter.DAL namespace. What am i doing
wrong, as i want the two files to sit in two seperate
assemblies.

Please Help!

Rob
Nov 22 '05 #1
10 1434
Roberto Modica <r_******@hotmail.com> wrote:
I am trying to create a namespace hierachy but i think i
am doing something wrong.

I have an DAL vb file with the namespace:

CompanyName.newsletter.DAL

and i compile that using the standard vbc in command
prompt routine, and that works. then i try and create a
Business Layer vb file, with the namespace:

CompanyName.Newsletter.BLL

But for this to work i have to compile both files
together, even though i have imported the
CompanyName.newsletter.DAL namespace. What am i doing
wrong, as i want the two files to sit in two seperate
assemblies.


Are you *referencing* the assembly containing
CompanyName.newsletter.DAL when you compile the second one? Importing a
namespace isn't the same thing as referencing an assembly.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #2
Hi Jon,

I dont think i am! could you point me to some article(s) or give me some
advice on how i could do this please.

Rob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #3
Sorry, if you didnt know i am not using VS.Net i am compiling using VBC

Rob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #4
<RM82 <RM82>> wrote:
I dont think i am! could you point me to some article(s) or give me some
advice on how i could do this please.


In the "References" part of the project, click on Add Reference. Go to
the Projects tab, and select the project you want to add a reference
to.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #5
Hi Again John,

i am not using Visual Studio.Net so how would i add referencing without
it??

Rob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #6
<RM82 <RM82>> wrote:
i am not using Visual Studio.Net so how would i add referencing without
it??


Sorry - I misread your previous post!

Use the /r command line parameter to add a reference, e.g.

vbc /r:Foo.dll ... (the other arguments)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #7
I have tried that before,

i have created a assembly called:

Newsletter.DAL.dll and placed it into my Bin directory(application
wide), i have even placed it in a bin directory which sits in the same
directory as my business component:

so i add the /r:newsletter.data.dll line to my vbc and it returns an
error:

Command Line Error BC2017: Could Not Find Library 'newsletter.Data.dll"

my command line is:

vbc /t:library /out:newsletter.dll *.vb /r:system.dll /r:system.data.dll
/r:system.xml.dll /r:system.web.dll /r:newsletter.data.dll

am i doing something wrong.

Rob
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #8
<RM82 <RM82>> wrote:
I have tried that before,

i have created a assembly called:

Newsletter.DAL.dll and placed it into my Bin directory(application
wide), i have even placed it in a bin directory which sits in the same
directory as my business component:

so i add the /r:newsletter.data.dll line to my vbc and it returns an
error:

Command Line Error BC2017: Could Not Find Library 'newsletter.Data.dll"

my command line is:

vbc /t:library /out:newsletter.dll *.vb /r:system.dll /r:system.data.dll
/r:system.xml.dll /r:system.web.dll /r:newsletter.data.dll

am i doing something wrong.


Yes - if you've placed it in your bin directory, you need to use

/r:bin\newsletter.data.dll

I suspect you don't need to add the other references though - they're
probably added automatically. (They are in C#, at least.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #9
Hi there,

took them out and still the same. i am at my wits end i really am, two
days to compile something!! any websites i could look at or any further
advice i am going mad here!

Rob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #10
Ignore my last post!! thanks John for all you help! it was the reference
pointing to the bin dir thanks so much!!

Rob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 22 '05 #11

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

Similar topics

6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
11
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
4
by: -Michelle- | last post by:
Hi I am using A2003 on XP. The client has A2000. So I have ensured that I have developed based on A2000 and compiled as such. I have found that in a number of cases now, I have used (what I...
3
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again...
2
by: Erik | last post by:
Hi Everyone, I'm having real problems compiling some source for eVC4++. The errors I am getting are below: It all seems to be centred around winsock. If I move the afsock.h reference to before...
3
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49'...
2
by: nospam | last post by:
Hi Newbie asp questions: I have problems running new website when its uploaded. It compiles nicely when running on my local machine, but when compiling on the server i get the error:
0
by: phoolimin | last post by:
Dear all, I am trying to embed python into another scripting language, to do this I need to solve a number of problems on importing or compiling python script. First let me state what exactly I...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.