Thread: problem in cpp open source file

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    13

    Question problem in cpp open source file

    Hi,

    I have a cpp file which I got from this link:

    Positional Language Models for Information Retrieval

    As you can see it requires Lemur toolkit but I can't do configurations, I'm following instructions from this link:

    Compiling on Windows with Visual Studio

    for PLMRetEval.cpp file which I'm intersted in I don't know how to run it in windows 7?

    Can anyone help me in that pleaseeeeeeeeeee?

    Thnak you,,

  2. #2
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Do you know how to start Microsoft Visual Studio?

  3. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    13
    Thank you nonoob for reply,

    I have creted a new project in visual c++ which I added the PLMRetEval.cpp into, but I couldn't do configurations to link it with lumer??

    And before that I tried to run lumer but still get errors when I rebuild Lemur-VS2008.sln but still have errors in linking??

    I don't know if what I have done is right, I'm not so good in vc++ ....

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    There is a forum for C++ and a forum for C... you are in the one for C but mention some C++ files. That said, your problem is with issues compiling/linking your project. Show us the errors you are seeing.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    13
    Thank you hk_mp5kpdw,

    I didn't concentrate on the forum name, but I will paste question in c++ forum.

    And here is the error that I'm getting when I debug the new project that I mentioned above:


    c:\program files\lemur\lemur 4.12\include\lemur-platform.h(22) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory



    I tried to delete this include line form lemur-platform.h but I can't save changes to that file??




    hat

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    The unistd.h header file is a Unix/Linux header file and I doubt that you will be able to use your Microsoft compiler to compile a file that requires that header without massive changes.

    Jim

  7. #7
    Registered User
    Join Date
    Feb 2012
    Posts
    13
    Jim I've searched about that file and some said many programmers add this file while they don't use it really?!! based on that I just tried to delete its include line..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic? C++ open file problem
    By RickKlose in forum C++ Programming
    Replies: 15
    Last Post: 01-29-2012, 09:05 PM
  2. problem with open file.
    By oror84 in forum C Programming
    Replies: 5
    Last Post: 01-15-2011, 08:19 AM
  3. Replies: 8
    Last Post: 08-01-2010, 12:14 PM
  4. Open source, easy-to-use XMPP messenger: Open-IM
    By mkruk in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 06-22-2008, 04:10 PM
  5. Open Source / Semi Open source game idea. Help needed
    By CaptainPatent in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 05-16-2007, 10:44 AM