Thread: compiling gaim for windows

  1. #1
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455

    compiling gaim for windows

    im working on a gaim plugin for windows. the i got glib and gtk adn everything, ive figured how to incorporate the plugin and whatnot..but apparently glib is built for *nix. it can't find sys/time.h, when i need something to run for windows. im thinking of replacing it but it uses unix timestamps and whatnot. ive been searching around for ideas but havent found anything. i check google groups too.

    anyone got any ideas?

  2. #2
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    Write a new implementation following how windows does it. See MSDN for more info.

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Wait... why are you trying to compile gaim for Windows? There's AIM, deadAIM, AIM+, Trillian, and others... are you doing something cool? Anyway, I think that you might be able to get some source code if you contact the makers of those ^ versions of AIM...
    Away.

  4. #4
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    there already is a version of gaim for windows...im writing a plugin for it.
    is it cool? i guess. im attempting to implement my 'bot' thingy into gaim so it actually does something.

    Lynux-Penguin: unix timestamps can be implemented in windows? or do you know of someplace where this has been done already?

  5. #5
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    I'm not sure but Im sure some people have done it. Check MSDN for timestamps

    or google for your answers

    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  6. #6
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    i just made a dummy header file and included time.h, now im getting a diff error with macros. *sigh*

    theres gotta be an easier way.

  7. #7
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    haha... nabby asking for help... never thought i'd see that...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  8. #8
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    lol..

    Code:
    extern int wgaim_getsockopt(int socket, int level, int optname, void *optval, unsigned int *optlenptr);
    #define getsockopt( args... ) \
    wgaim_getsockopt( ## args )
    many more similar macros

    the error:
    error C2010: '.' : unexpected in macro formal parameter list

    illegal in c?

    im downloading cygwin and going to see if that helps

  9. #9
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    nevermind, i think i got it with cygwin/mingw

    though im having some trouble with the includes, but ill figure that out. thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem compiling files that store functions
    By tiachopvutru in forum C++ Programming
    Replies: 10
    Last Post: 05-30-2008, 05:42 PM
  2. Compiling Issues
    By pc_doctor in forum C Programming
    Replies: 3
    Last Post: 11-30-2007, 10:00 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Problem Compiling
    By Flakster in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 01:09 AM
  5. Compiling in Unix vs Visual C++
    By stimpyzu in forum C++ Programming
    Replies: 2
    Last Post: 09-30-2002, 06:41 AM