| ??? 04/27/01 06:21 Read: times |
#11178 - Dynamic Arrays (calloc) |
I'm using an atmel 2051 with the Franklin Proview, and am trying to create a dynamic array, to read data off the serial port
The following code (which I wrote just for this question so is only an example) compiles fine indicating that I want 7 Blocks of memory, where each block is 1 byte long) #include <stdlib> // for malloc.... void someFunction(void) { byte *ptrData; //pointer to the located array of incoming data ptrData = calloc(7,1); } However when it comes to linking the program I get the following error Error 100 : Unresolved External Symbol: _calloc(Myfile) Any ideas; or any other ways to declare a dynamic array. Thanks Marshall Brown |
| Topic | Author | Date |
| Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
| RE: Dynamic Arrays (calloc) | 01/01/70 00:00 | |
RE: Dynamic Arrays (calloc) | 01/01/70 00:00 |



