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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:38:21+00:00 2026-05-30T09:38:21+00:00

I have a compilation problem using C++ language and IloCplex framework. I first tried

  • 0

I have a compilation problem using C++ language and IloCplex framework.

I first tried to compile the entire project using a makefile, but i got an unexpected error, with a class header call AbstractModel, so as to ensure that this error is not due to other file, i decided to just compile this class with this command :

g++ -o AbstractModel.o -c -I/path/to/cplex/include
-I/path/to/concert/include -DIL_STD AbstractModel.cpp

Then i realized that i got the same error message, here is the AbstractModel class :

http://pastebin.com/B9YiqKUS

and the type.h class :

http://pastebin.com/trQ6BDBK

The error is the following :

In file included from AbstractModel.hpp:12,
from AbstractModel.cpp:7:
type.h:6: error: expected constructor, destructor, or type conversion before ‘typedef’
In file included from AbstractModel.cpp:7:
AbstractModel.hpp:50: error: ‘Vector’ does not name a type
AbstractModel.hpp:51: error: ‘Vector’ does not name a type

Any suggestions ?

P.S : Cplex works fine on this computer, i have another project with the same kind of class that compiles perfectly with the same command.

  • 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-05-30T09:38:23+00:00Added an answer on May 30, 2026 at 9:38 am

    CustomType.hpp must be #included before AbstractModel.hpp because CustomType.hpp defines the typedefs that AbstractModel.hpp uses.

    It is impossible to see from what you have pasted whether or not that is indeed the case.

    Ideally your AbstractModel.hpp header will #include "CustomType.hpp" itself rather than relying on it being done.

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

Sidebar

Related Questions

Currently we're using Web Application project, so we have a gain with compilation. But
I tried to compile the code using g++4.4.6 on aix 6.1. I dont have
I have implemented this code, but fail at compilation (VC2008 Express Ed.) : Now
I have a project that currently compiles happily on my dev machine using VS
I have a problem understanding what's causes the compilation error in the code below:
I am creating a basic msi project using installsheild 2012 premier. I have two
The problem we have are as follows: We are using ANT to build our
I have a problem using a shared_ptr of a base class, I can't seem
I have a problem in using Drools Planner (written in Java) in Scala. One
I have a problem with my Visual Studio 2005 C# project. I have been

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.