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 8655459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:02:01+00:00 2026-06-12T15:02:01+00:00

While analyzing some library code supplied by another company we have come across strange

  • 0

While analyzing some library code supplied by another company we have come across strange construct (probably an error). In the header file a function was declared as:

int funct(type1 var1, type2 var2, void* usr_arg);

(sorry for general naming. NDA) But in the source file function of the same name was defined as:

int funct(type1 var1, type2 var2, long usr_arg)
{
    // code goes here;
}

And the most curious thing was, that while compiling with the makefile supplied, everything works fine. When we tried to configure eclipse project however, it refused compilation and pointed us at exactly two function headers stated above.

Compiler used in our case is gcc under ubuntu, however the library is supposed to work under windows as well. How can we make gcc accept this monstrosity?

  • 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-12T15:02:02+00:00Added an answer on June 12, 2026 at 3:02 pm

    It’s not very strange, the Makefile probably passes some flag to gcc to ignore that, or just issue a warning, while the eclipse project doesn’t, or it could be that the eclipse project compiler flags are more strict. Anyway, I suggest you change the function declaration to match its definition (or the other way around depending on what the function actually expects) and the error will go away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on someone else's code. Came across a piece of code while analyzing the
While testing and analyzing code of Bluetooth Chat, I have questions about my own
while looking at some code I stumbled onto: throw /*-->*/new std::exception (//... and I
While playing with standard library i've found a strange difference between python2 and python3.
I've written a custom task for analyzing code coverage results. While building the entire
While analyzing some approaches to making our web app easier to deploy on our
Occasionally, I have come across programming techniques that involve creating application frameworks or websites
I'm not a veteran in socket programming, so while analyzing code I found in
I'm going to analyze the video while it is recording. I have analyzing function
While analyzing some ASP.NET MVC projects I got to see anonymous types scattered all

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.