[Clp-tickets] [COIN-OR Linear Programming Solver] #20: two patches to make Clp compile on MSVC with __stdcall default calling convention

COIN-OR Linear Programming Solver coin-trac at coin-or.org
Thu Jul 3 15:49:31 EDT 2008


#20: two patches to make Clp compile on MSVC with __stdcall default calling
convention
-------------------------+--------------------------------------------------
  Reporter:  schoedl     |       Owner:  somebody
      Type:  defect      |      Status:  closed  
  Priority:  major       |   Milestone:          
 Component:  component1  |     Version:          
Resolution:  invalid     |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by ladanyi):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 A much simpler solution is to add a /Gz flag to your working copy of the
 project file. That will default every function call to __stdcall.

 Your patch changes only two functions, the rest would remain __cdecl,
 which is a disaster waitig to happen. Much better if all functions in a
 library have the same calling convention.

 I believe we should default to whatever cl defaults to, which is at the
 moment __cdecl.

 --Laci

-- 
Ticket URL: <https://projects.coin-or.org/Clp/ticket/20#comment:2>
COIN-OR Linear Programming Solver <http://projects.coin-or.org/Clp>
A linear programming solver.



More information about the Clp-tickets mailing list