Talk:Bitmap/Read a PPM file: Difference between revisions

From Rosetta Code
Content added Content deleted
(C code is missing information)
 
No edit summary
Line 3: Line 3:
* the necessary <code>#include</code> should be added to the samples (A quick guess: The commented-out <code>#include "imglib.h"</code> from the calling example code might provide those types; maybe "imglib" is even the name of that library)
* the necessary <code>#include</code> should be added to the samples (A quick guess: The commented-out <code>#include "imglib.h"</code> from the calling example code might provide those types; maybe "imglib" is even the name of that library)
The same is also true for the related tasks, of course. --[[User:Ce|Ce]] 17:35, 15 January 2009 (UTC)
The same is also true for the related tasks, of course. --[[User:Ce|Ce]] 17:35, 15 January 2009 (UTC)
: Many of these image tasks depend on other image tasks, such as [[Basic bitmap storage]]. The dependencies are mentioned in the task description. --[[User:IanOsgood|IanOsgood]] 21:12, 15 January 2009 (UTC)

Revision as of 21:12, 15 January 2009

The C code uses a type image and functions alloc_img and free_img, which are nowhere defined (they are definitively not part of standard C). I guess they come from some library; in that case

  • the needed library should be given
  • the necessary #include should be added to the samples (A quick guess: The commented-out #include "imglib.h" from the calling example code might provide those types; maybe "imglib" is even the name of that library)

The same is also true for the related tasks, of course. --Ce 17:35, 15 January 2009 (UTC)

Many of these image tasks depend on other image tasks, such as Basic bitmap storage. The dependencies are mentioned in the task description. --IanOsgood 21:12, 15 January 2009 (UTC)