Results 1 to 30 of 30

Thread: CL Compilation ?[Resolved]

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    CL Compilation ?[Resolved]

    This is really weird ! I compiled(released) my proj from within the IDE , then worked fine(output dll ) with no errors .But with CL , I got like 30 errors or so and a msg said "Maximum number of errors has been exceeded" ? What might be wrong ?
    Last edited by Pirate; Apr 20th, 2003 at 03:07 PM.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    What kind of errors were reported?
    When you compiled your app in the IDE, was there anything in the output window (I think that is what it is called - the one where it shows errors). Maybe there was warnings in the IDE, but the CL calls them errors...

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    in the IDE no errors , no warnings at all . CL didn't output any file .

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I used this command , Wondering if I have to include specific directives .

    vbc /target:library /outBdll.dll databaseclass.vb

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Damn that face , it should be like this :

    vbc /target:library /out:bdBdll.dll databaseclass.vb
    Last edited by Pirate; Apr 19th, 2003 at 02:19 PM.

  6. #6
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    You need to include the /references command line switch and list all the dlls your project references. For example:
    VB Code:
    1. vbc /references:system.dll,system.web.dll /target:library /out:bdBdll.dll databaseclass.vb
    The IDE does that for you behind the scenes.

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    It could be . brb .

  8. #8

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    No , it gives the same result . Look at the attachted image .(I know it doesn't clearly shows the errors but jpg would take more than 100k)
    Attached Images Attached Images  

  9. #9
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    It's underlining the stuff it doesn't know about, you need to include every dll your project references, doesn't system.data.dll contain the oledb/data stuff? that needs to be included in the references switch.

  10. #10
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Those are all just reference errors.
    You are going to have to make sure everything has a reference when compiling it. You are leaving out the system.data namespace, the system.data.OleDb reference....etc...

  11. #11

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't what's wrong now is what I'm doing correct?
    It gives me the same error .

    vbc /references:System.dll,System.windows.forms.dll,system.drawing.dll,system.data.dll,system.data.oledb. dll,system.xml.dll /target:library /out:mydbdll.dll databaseclass.vb

  12. #12

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    *bump*

  13. #13
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    hmmm, well not sure what's goin on. I coded up a little test app and tried it and it worked like a champ(but i also don't know what alls in your code, my sample is REALLY simple), here are some screen shots.
    Here's a shot of my ide.
    And here's a shot of my command line params.

  14. #14

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Thanks for your reply pvb...

    I got few errors now I think but no output !Can you figure out what's wrong again ?
    Attached Images Attached Images  

  15. #15

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Second Screen..
    Attached Images Attached Images  

  16. #16
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    Now it looks like it can't find any of the objects in the System.Windows.Forms.dll, did you include that in your /references switch list?

  17. #17

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I did both of these with no luck :

    vbc /t:library /out:bin/mydbdll.dll /r:System.dll,System.windows.forms.dll,system.drawing.dll,system.data.dll,system.xml.dll databaseclass.vb

    vbc /t:library /out:c:\mydbdll.dll /r:System.dll,System.windows.forms.dll,system.drawing.dll,system.data.dll,system.xml.dll databaseclass.vb

  18. #18
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    hmmm, if ya want post the file databaseclass.vb and i'll try to compile it, i'm kinda outta ideas.

  19. #19

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    It's regular Classfile contains all database methods ever . Sorry I can't post it here . I should tell you that it's attachted (added) to myproj (winforms) Do you think I should compile it by itself ?

  20. #20
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    it's worth a try, maybe just create a new console app, add your databaseclass.vb file and the necessary references to make it compile in the ide then try it from commandline.

  21. #21

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yeah , it's worth it really . Well , actually the IDE compiled it but I just wanted to compile that in CL .
    Thanks for your time anyways . brb

  22. #22

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    The problem now is with "Format" and "Now" keywords. It says , they are not declared . BTW , I replaced "msgbox" keywords with "MessageBox.Show" because I got errors sound it didn't find "msgbox" declaration .I believe that have to do with VisualBasic Namespace.

  23. #23
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    The Microsoft.VisualBasic namespace is needed for those.

  24. #24

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yeeeeeeesssssss , I got it . That's what I thought .
    Thanks guys .

  25. #25

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hmm , that's really weird ! . How come when I run that within the IDE even without Import Visualbasic library , I get no errors but the opposite while CL Compilation ??

  26. #26
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    If your using VB.Net in the VS IDE, then it automatically references that namespace for you.

  27. #27

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't know really but have you seen that somewhere in the option menu ?

  28. #28
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    It is one of the VB.Net's features.... It allows you to take advantage of all those VB things from VB6 without having to reference something first.

  29. #29

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yup hellswraith , that makes more sense now .

  30. #30
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Glad you got it all sorted out. I really dislike compiling from the command line...lol. Too much typing for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width