| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem with Struct...
I'm using the program "Anim8or" to make 3-D models. I exported it as C, and there is a problem I can't figure out.
Problem: Quote:
Model.c - full struct. Code:
struct Anim8orObject object_object01 = {
"object01", 1, // Num Meshes
&mesh01,
};
Model.c - line 112765. Code:
}; Anim8orExport.h - function. Code:
typedef struct Anim8orObject {
const char *name;
int nMeshes;
Anim8orMesh *meshes[];
} Anim8orObject;
Can anyone help? |
|
#2
|
|||
|
|||
|
Try removing the comma after &mesh01 in Model.c
|
|
#3
|
|||
|
|||
|
Same error. :-\
|
|
#4
|
|||
|
|||
|
I tried this in Dev-C++ 4.9.9.2 (backend gcc 3.4.2) and got "non-static initialization of a flexible array member" errors referring to &mesh01...can I see where mesh01 is defined?
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Problem with Struct... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|