Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7930601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:28:39+00:00 2026-06-03T20:28:39+00:00

I am playing around with clucene under mac osx with xcode and have some

  • 0

I am playing around with clucene under mac osx with xcode and have some problems with the demo application, maybe someone can help me with that 🙂

The demo code comes with ‘document’ and ‘query’ arrays:

const TCHAR* docs[] = {
  _T("a b c d e"),
  ...
  _T("a c e a b c"),
  NULL
};

const TCHAR* queries[] = {
  _T("a b"),
  ...
  _T("\"a c e\""),
  NULL
};

which are used for indexing and as queries which work good as long as i comment out the _tprintf lines like:

_tprintf(_T("Query: %s\n"), qryInfo);

so _tprintf seems to be unrecognized by my system and if I use tprintf xcode says there is no matching function for call to tprintf.

So how do I print TCHARs correctly? CLucene needs TCHAR names for Fields.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:28:41+00:00Added an answer on June 3, 2026 at 8:28 pm

    On Windows, TCHAR is either wchar_t or plain char depending on your project settings.

    Likewise, _tprintf is either wprintf of printf to match the choice of characters.

    On OSX you will likely have to make this choice yourself, perhaps

    #define _tprintf    wprintf
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just playing around with some of the APIs in .NET and I can't seem
I've been playing around with Simple.Data and have run across something that I can't
I'm just playing around with some code but it seemed to have the specific
Playing around with Google Maps these days, with some directions. I have a map
I am playing around with the AVAudioRecorder so I can have it in my
I playing around with the Twitter API for my BlackBerry application. Is there any
Been playing around with this for a couple of hours and can't seem to
I have been playing around with various methods of making the Visitor pattern in
While playing around with some hooks I noticed that the output from the hooks
I'm playing around with some code katas and trying to get a better understanding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.