Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c_bindings_example [2012/01/05 19:55]
thomaslocke created
c_bindings_example [2012/01/05 19:58] (current)
thomaslocke [The solution]
Line 74: Line 74:
 package random_number_hpp is package random_number_hpp is
  
-  procedure getNewSeed; ​ -- random_number.hpp:​8:​21 pragma Import (CPP, +  procedure getNewSeed; ​  
-  ​getNewSeed, "​_Z14getNewSeedv"​);​+  -- random_number.hpp:​8:​21 ​ 
 +  ​pragma Import (CPP, getNewSeed, "​_Z14getNewSeedv"​);​
  
   function getRandom (a : int; b : int) return double;   function getRandom (a : int; b : int) return double;
Line 173: Line 174:
 ===== Credits ===== ===== Credits =====
  
-This page was adapted from a post under the subject //Need some light on using Ada or not// in [[http://​groups.google.com/​group/​comp.lang.ada/​browse_thread/​thread/​ad4585f2971e47c5/​97a8b3d60aaeee1b?​lnk=gst&​q=need+some+light+on+using+ada+or+not|]]comp.lang.ada. The question was put forward by Luis P. Mendes and kindly answered by Brian Drummond.+This page was adapted from a post under the subject //Need some light on using Ada or not// in [[http://​groups.google.com/​group/​comp.lang.ada/​browse_thread/​thread/​ad4585f2971e47c5/​97a8b3d60aaeee1b?​lnk=gst&​q=need+some+light+on+using+ada+or+not|comp.lang.ada]]. The question was put forward by Luis P. Mendes and kindly answered by Brian Drummond.
  

Navigation