Missing MIME_table from brand-new project

Topics for the Eclipse Environment
Post Reply
Heliotopos
Posts: 27
Joined: Thu Jun 27, 2013 8:30 am

Missing MIME_table from brand-new project

Post by Heliotopos »

I created a new NetBurner executable project in NBEclipse 2.6 and chose WebServer as the only project option. Without changing anything else, the new project will not build:

Code: Select all

C:\nburn/lib/NetBurner.a(htmldecomp.o): In function `SendHeaderResponse(char*, int)':
C:\nburn\system/htmldecomp.cpp:340: undefined reference to `MIME_table'
C:\nburn/lib/NetBurner.a(htmldecomp.o): In function `SendFullResponse(char*, int)':
C:\nburn\system/htmldecomp.cpp:301: undefined reference to `MIME_table'
Is comphtml supposed to generate MIME_table? If I look in C:\nburn\examples\Web\TicTacToe\htmldata.cpp, I see:

Code: Select all

const char * MIME_table[2]={
"image/gif",
"text/html",
};
That is not in the htmldata.cpp in the Release directory for my new project (attached). Is there something else I need to do first?

Thanks
Attachments
htmldata.cpp
Generated htmldata.cpp with no MIME_table
(1.28 KiB) Downloaded 301 times
User avatar
dciliske
Posts: 623
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Missing MIME_table from brand-new project

Post by dciliske »

Did you have multiple versions of the NNDK installed? You're using an older version of the comphtml utility that is incompatible with 2.60. I don't know how you got that.

I've attached my version of comphtml (from 2.6.2, but I don't believe that it's changed since 2.6.0) and a copy of the MIME_magic file, which does the magic w/regards to MIME types. See if replacing the installed ones with these fixes things (BACKUP THE CURRENT ONES FIRST). If not, submit a support request and we can take a deeper look.

-Dan
Attachments
pcbin.zip
Contains comphtml and MIME_magic.txt
(55.62 KiB) Downloaded 299 times
Dan Ciliske
Project Engineer
Netburner, Inc
Heliotopos
Posts: 27
Joined: Thu Jun 27, 2013 8:30 am

Re: Missing MIME_table from brand-new project

Post by Heliotopos »

I have 2.60 installed via NNDK-2.6-installer.exe, but I do have a copy of the 2.53 nburn directory elsewhere from a different project. I'm definitely running 2.6 with this project though.

Switching out those files didn't work for me. FWIW, they're different than what's in my c:\nburn directory. SHA1 sums for the originals:

Code: Select all

b1a605414ab872d1c877bff503916082c15245bb *comphtml.exe
e3d55fac7a56e7653b134456aa5bc9cc8a125dc7 *MIME_magic.txt
The ones you attached:

Code: Select all

e79510122b263beb8a6ed294c3534a7ca52d2929 *comphtml.exe
58df0e9bca1a634510388973de5748e0ee80f415 *MIME_magic.txt
The comphtml command in the console doesn't show what path it's running from, but the compiler include switches are showing c:\nburn, which is the 2.6 installation as far as I know. I'll submit a support request.

Thanks
Post Reply