compilation-error

Why is this compilation error coming?

Hello, I faced one issue while working on a C code with Microsoft Visual Studio-2005 compiler. I tried to declare a big buffer statically as : int gbl_data[4096*4096*256]; EDIT: This declaration was a global variable in a header file. It was giving an compilation error saying – “cannot allocate an array of constant size 0”. Means...

Compilation error on this string

I'm trying to create the following string: <script runat="server" type="text/C#"> protected void Page_Load(object sender, EventArgs e) { Parent.Page.ClientScript.RegisterStartupScript(typeof(Page), "test", "<script type='text/javascript' langauage='javascript' src='test.js'></script>"); } </script> yet i get a comp...

.NET: Type.Parse not working?

What am I doing wrong? using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Graphics; using Box2D.XNA; //... Type.Parse("GameObjectModel"); Compilation error: 'System.Type' does not contain a definition for 'Parse' I am trying to get the type of a class name from a stri...

[ Python Beginner ] compilation error. AttributeError: 'module' object has no attribute 'init'

Here is my small program, import pygame pygame.init() Here is my compilation command. python myprogram.py Compilation error, File "game.py", line 1, in import pygame File "/home/ubuntu/Documents/pygame.py", line 2, in pygame.init() AttributeError: 'module' object has no attribute 'init' I have pygame instal...