Thread: dlls are hard

  1. #16
    Wanabe Laser Engineer chico1st's Avatar
    Join Date
    Jul 2007
    Posts
    168
    oooo i didnt know visual studio uses different header based on what language im using.
    sweet that works, THANKS!

    im getting this warning now. was this what you were talking about bubba?

    Code:
    c:\startupplot.c(161) : warning C4013: 'malloc' undefined; assuming extern returning int
    c:\startupplot.c(164) : warning C4013: 'free' undefined; assuming extern returning int

  2. #17
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Include stdlib.h. for C or cstdlib for C++. Didn't we cover this already?

  3. #18
    Wanabe Laser Engineer chico1st's Avatar
    Join Date
    Jul 2007
    Posts
    168
    sorry... i loaded an old version of the code and made the changes again (i thought) because i was getting some weird errors.

    whoops.

  4. #19
    Wanabe Laser Engineer chico1st's Avatar
    Join Date
    Jul 2007
    Posts
    168
    BOOYEAH!

    Thanks guys you're the best!

  5. #20
    Wanabe Laser Engineer chico1st's Avatar
    Join Date
    Jul 2007
    Posts
    168
    when i compile this DLL there is a lot of other stuff made.
    .pch
    .obj
    etc

    do i need to take this with me when i take my dll places?

    also there is debug and release. I dont know what release means but im told it is better... how do i make this?

  6. #21
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    .pch are precompiled headers. They make the compilation process faster. You don't need to distribute them. .obj are compiled source code files that are not linked. You don't need to distribute them.

    As far as switching between debug and release..... RTM. It's IDE/compiler specific. For MSVS, it should be right there in front of you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extracting data from a laptop hard drive
    By DavidP in forum Tech Board
    Replies: 6
    Last Post: 06-13-2009, 07:02 AM
  2. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 02:25 AM
  3. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 07:32 PM
  4. Replies: 2
    Last Post: 07-06-2005, 07:11 PM
  5. question about DLL's and class functions
    By btq in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2003, 06:08 AM