locked
Unrecognised function or variable 'http' when compiling for different platform RRS feed

  • Question

  • Hello. I have two pc's with Windows 7. One is 64-bit and the other 32-bit. I have downloaded the NetworkMonitorHelpCExamples and compiled them successfully on the 64-bit machine. I have trested both CapFiltLive and CapSaveLive and both work ok. However, I would like to use the 64-bit machine to compile them for use in my 32-bit machine. I believe I have set up correctly the linked libraries and when I compile the release version for 32bit (no errors), the CapSaveLive works (on the 32bit) but CapFitLive complains saying "Unrecognised function or variable 'http'". What could I do to solve this ? I read somewhere in this forum that double quotes have special meaning in the command line. Double quotes appear in the source code of CapFiltLive to set up the filter n the parser (L"http.request.uri"). 

    Thank you very much
    • Edited by Costas7 Wednesday, November 2, 2011 6:55 PM
    Wednesday, November 2, 2011 6:55 PM

Answers

  • For some reason the parsers were not installed along with NM3.4 in the 32 bit machine. I had to uninstall and reinstall NM3.4 (just downloading and installing the latest parsers did not fix the issue even after restart). Now it works. Thank you very much.
    • Marked as answer by Paul E Long Thursday, November 3, 2011 4:11 PM
    Thursday, November 3, 2011 3:54 PM

All replies

  • I just tried this myself, and it compiled for me.  I downloaded the SDK, opened the project in VS 2008 by double-clicking the sln file.  It defaulted to Debug/Win32.  And then built the program which reported no errors.  I also tried the release version which also built succesfully.

    Did you run into an error trying to build the project? (I don't think you are reporting an error running the program, right)?

    Are these the same steps you took?

    Thanks,

    Paul

    Wednesday, November 2, 2011 9:52 PM
  • I am compiling on a 64 -bit machine and successfully producing a 32 bit binary (release Win 32). No errors while compiling ! When I transfer the 32 bit binaries (for CapSaveLive and CapFiltLive) to a 32 bit machine and run them, the CapSaveLive binary works fine but the CapFiltLive shows the above mentioned error (Unrecognised function or variable 'http').

    The error occurs while running the program not while compiling. Any ideas ?

    Thanks a lot !

    PS: I open the project by clicking the  .vcproj file. I dont think this makes any difference.

    Thursday, November 3, 2011 12:59 PM
  • I was able to run the 32 bit version on a Vista 32bit Virtual PC.  So I was unable to reproduce your issue. 

    The tool will require you have Nm3.4 installed.  Do you have NM3.4 installed on the 32bit machine?

    Assuming you have Nm3.4 installed, does it run properly on the 32bit machine?

    Thanks,

    Paul

     

     

    Thursday, November 3, 2011 1:35 PM
  • For some reason the parsers were not installed along with NM3.4 in the 32 bit machine. I had to uninstall and reinstall NM3.4 (just downloading and installing the latest parsers did not fix the issue even after restart). Now it works. Thank you very much.
    • Marked as answer by Paul E Long Thursday, November 3, 2011 4:11 PM
    Thursday, November 3, 2011 3:54 PM